android - Make my view able to accept child views in xml -
i have write own view bar, extends linearlayout. bar has 2 places add buttons or other view. add items bar using code, like:
bar.additemtoleft(view); or bar.additemtoright(view);
i make bar able accept childs view in xml linearlayout.
for example:
<com.my.ui.bar android:id="@+id/bar" android:layout_width="fill_parent" android:layout_height="wrap_content"> <com.my.ui.barleft android:layout_width="wrap_content" android:layout_height="wrap_content"> <view/> <view/> <view/> </com.my.ui.barleft> <com.my.ui.barright android:layout_width="wrap_content" android:layout_height="wrap_content"> <view/> <view/> <view/> </com.my.ui.barleft> </com.my.ui.bar> is possiable do?
ps:

you bar left , right bar must extend viewgroup (linearlayout, relativelayout) able accpet childs.
regards, aqif hamid
Comments
Post a Comment