views:

50

answers:

1

LinearLayout just works fine in an AppWidget. However, when I change the layout's xml to a TableLayout, I am unable to get the widget working :(.

Can anyone point me to a sample? [could not find anything on the web]

-Sri

A: 

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
Qberticus
Thanks for your time :-). I was able to get a what I wanted through the RelativeLayout. -Sri
Sridhar