开发者

Can I have a TableLayout in an AppWidget?

开发者 https://www.devze.com 2023-01-09 22:32 出处:网络
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 :(.

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


AppWidgets 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
0

精彩评论

暂无评论...
验证码 换一张
取 消