Android: Creating A Custom Container-view
I'm trying to create a custom view (or better, layout) in android, that serves as a container for 2 child views (Think of it as a bar that separates 2 containers vertically, that c
Solution 1:
instead of
<view class="at.calista.quatscha.views.SwipebarLayout"
android:id="@+id/sbl"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
you can use
<at.calista.quatscha.views.SwipebarLayout
android:id="@+id/sbl"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
If your SwipebarLayout class extends LinearLayout it will behave exactly same way as if you would have LinearLayout tag in your code instead and you can position the children exactly same way you would with LinearLayout. Of course if you have overridden some methods from LinearLayout then the functionality is different from that part.
Post a Comment for "Android: Creating A Custom Container-view"