Hi, I have read the LabelView example in APIDemo which show how to create a custom widget.
However, what if I want to create a custom widget which is a composite of existing android widget? For example, in my currently activity, I have this in my layout xml file which has 2 bottoms left, right aligned: <RelativeLayout android:id="@+id/arow" android:gravity="left" android:layout_width="fill_parent" android:layout_height="50px" android:orientation="horizontal" android:background="#000000" android:layout_alignParentTop="true"> <ImageView android:id="@+id/left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:src="@drawable/left" /> <ImageView android:id="@+id/right" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:src="@drawable/right" /> </RelativeLayout> My question is how can i create a custom widget which is a composite widget of 2 ImageView , with left, right aligned? I know my custom widget need to be inherited from view, but if i do that, I can't do 'setContentView()' in my custom widget class (since that is an Activity method). so how can I apply the above xml to my custom widget class? Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---