Android Vertical tabhost -


i want built vertical tab host below image

enter image description here

i tried following code tabs not visible

gettabwidget().setorientation(linearlayout.vertical); 

is possible implement tab host below.if possible tell me way implement tab host below.and post links if there built in project's implement below image. (or) possible add activity image view click similar tab bar click below

  mtabhost.addtab(mtabhost.newtabspec("tab_test1").setindicator("tab 1").setcontent(r.id.textview1));  

because if possible put image views , change activities on each item click

help me out in making vertical tab-host.

you need place tab widget in horizontal linearlayout in xml file:

<tabhost     android:id="@android:id/tabhost"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:layout_below="@+id/imageview3" >      <linearlayout         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:orientation="horizontal" >          <framelayout             android:id="@android:id/tabcontent"             android:layout_width="0dp"             android:layout_height="0dp"             android:layout_weight="0"/>          <android.support.v4.view.viewpager             android:id="@+id/pager"             android:layout_width="fill_parent"             android:layout_height="0dp"             android:layout_weight="1" >         </android.support.v4.view.viewpager>          <tabwidget             android:id="@android:id/tabs"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:orientation="horizontal"             android:layout_gravity="center_vertical">         </tabwidget>      </linearlayout> </tabhost> 

this place tabs right of content, if want left need rearrange order in xml file.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -