LinearLayout just works fine in an AppWidget. However, when I change the layout's xml to a Table开发者_如何学运维Layout, I am unable to get the widget working :(.
Can anyone point me to a sample? [could not find anything on the web]
-Sri
AppWidget
s use RemoteViews
to implement their interface and only Views with the RemoteViews.RemoteView
annotation can be used. This is the list of the Views in the android.widget package that have this annotation:
- AbsoluteLayout
- AnalogClock
- Button
- Chronometer
- FrameLayout
- ImageButton
- ImageView
- LinearLayout
- ProgressBar
- RelativeLayout
- TextView
- ViewFlipper
精彩评论