开发者

Can I have a TableLayout in an AppWidget?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜