android - Tabs not coming in bottom when using fragment tab host -


hi using fragmenttabhost display tabs in application. tabs displayed not appearing @ bottom. here layout code activity

<android.support.v4.app.fragmenttabhost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent">  <linearlayout     android:orientation="vertical"     android:layout_width="match_parent"     android:layout_height="match_parent">      <tabwidget         android:id="@android:id/tabs"         android:orientation="horizontal"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_weight="0"/>      <framelayout         android:id="@android:id/tabcontent"         android:layout_width="0dp"         android:layout_height="0dp"         android:layout_weight="0"/>      <framelayout         android:id="@+android:id/realtabcontent"         android:layout_width="match_parent"         android:layout_height="0dp"         android:layout_weight="1"/>  </linearlayout> 

the code used display taken android documentation. problem tabs on top , they're not appearing @ bottom

actually it's against android design guideline since @ bottom there soft/hard buttons button home button etc.

http://developer.android.com/design/patterns/pure-android.html

but if insist on put them @ bottom, should tweak it, there have been implemented 1 below https://github.com/rameshkec85/bottomtabsfragmenttabhost


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -