在AppWidget里添加View都是通过RemoteView来做到,
然而RemoteView本身功能很弱,支持的操作很少,而且支持RemoteView的Widget很少,在Dev Guide中有下面这段:
A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:
FrameLayout
LinearLayout
RelativeLayout
And the following widget classes:
AnalogClock
Button
Chronometer
ImageButton
ImageView
ProgressBar
TextView
本文介绍了在Android中如何使用RemoteView为AppWidget添加View组件。由于RemoteView功能有限,仅支持特定的布局和控件类,如FrameLayout、LinearLayout等。文章详细列举了RemoteView所支持的所有Widget类。

被折叠的 条评论
为什么被折叠?



