如何从小部件访问 UI 元素样式以及如何设置位置或尺寸?
我知道 setText :
RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.widgetlayout);
remoteViews.setTextViewText(R.id.updateText, "New text");
但是如何实现这个
ViewGroup.LayoutParams paraPlay1 = PLAY_BTN1.getLayoutParams();
Double d1 = (200.0);
paraPlay1.width = d1.intValue();
paraPlay1.height = d1.intValue();
PLAY_BTN1.setLayoutParams(paraPlay1);