Android: IPhonish Tabs but displayed at the top -
i iphonish tab can't figure out how make display @ top instead of @ bottom.
http://bakhtiyor.com/2009/10/iphonish-tabs/
thanks.
<?xml version="1.0" encoding="utf-8"?> <tabhost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <radiogroup android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:checkedbutton="@+id/first" android:id="@+id/states"> <radiobutton android:id="@+id/first" android:background="@drawable/button_radio" android:width="80dip" android:height="70dip" /> <radiobutton android:id="@+id/second" android:background="@drawable/button_radio" android:width="80dip" android:height="70dip" /> <radiobutton android:id="@+id/third" android:background="@drawable/button_radio" android:width="80dip" android:height="70dip" /> <radiobutton android:id="@+id/fourth" android:background="@drawable/button_radio" android:width="80dip" android:height="70dip" /> </radiogroup> <framelayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" android:padding="20dip" android:background="#fff"/> <tabwidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:visibility="gone" /> </linearlayout> </tabhost>
just 2 comments:
- iphone tabs sucks... no, sorry, meant: iphone tabs sucks. in fact, tabs sucks.
- read ui basis before trying things this. saw, had change order of linearlayouts children.
Comments
Post a Comment