android, Tutorial 029-3, UI, Tab at the bottom of the screen via XML

August 15, 2011   ·   0 Comments

 

I will show how to move tabs from top to bottom of the application.

please follow this tutorial sample code to update the code,

http://www.powenko.com/en/?p=305

 

 
 This is the layout:
<?xml version="1.0" encoding="utf-8"?>

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="vertical"

android:id="@android:id/tabhost"

android:layout_width="fill_parent"

android:layout_height="fill_parent">

<RelativeLayout

android:orientation="vertical"

android:layout_width="fill_parent"

android:layout_height="fill_parent">

<FrameLayout

android:id="@android:id/tabcontent"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:padding="5dp"

/>

<TabWidget

android:id="@android:id/tabs"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:gravity="bottom"

android:layout_alignParentBottom="true"

/>

</RelativeLayout>

</TabHost>
<pre>

sample code:

"Tutorial_UI_Tab_Res_Buttom_TabActivityActivity"

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Android7

Amazon

adsbygoogle

Recent Posts

Categories

Amazon