2011-02-16 10 views
7

मैं एंड्रॉइड में एक टैब बार का उपयोग कर रहा हूं।एंड्रॉइड में नीचे टैब बार कैसे सेट करें?

डिफ़ॉल्ट रूप से, यह शीर्ष पर प्रदर्शित होता है।

मैं इसे नीचे प्रदर्शित करना चाहता हूं।

क्या कोई यह बता सकता है कि यह कैसे करें?

उत्तर

23

इस लिंक की जांच करें।

+0

क्या एक्शनबार एक्टिविटी के अंदर टैबहोस्ट का उपयोग करना संभव है? –

2
<?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" 
    android:padding="1dp" > 

    <RelativeLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:orientation="vertical" 
     android:padding="5dp" > 

     <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:layout_alignParentBottom="true" /> 
    </RelativeLayout>> 

</TabHost> 
संबंधित मुद्दे