Monday, July 30, 2012

Re: [android-developers] is it possible to make tab on top and bottom of screen

Aw crap - sorry misread your question - that's JUST at the bottom. :-/

Larry


On Mon, Jul 30, 2012 at 8:20 AM, Larry Meadors <larry.meadors@gmail.com> wrote:
> It is possible. Not perfect, but adequate.
>
> <?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"
> android:padding="5dp">
> <FrameLayout
> android:id="@android:id/tabcontent"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:padding="3dp"
> android:layout_weight="1"/>
> <TabWidget
> android:id="@android:id/tabs"
> android:layout_width="fill_parent"
> android:layout_height="45dp"
> android:layout_weight="0"
> android:layout_gravity="bottom"/>
> </LinearLayout>
> </TabHost>
>
> Larry

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment