java - How to stick TabWidget in top of the screen while scrolling the layout in Android? -


i have tabwidget in code. how stick in top of screen in layout?

<tabwidget     android:id="@android:id/tabs"     android:layout_width="match_parent"     android:layout_height="55dp"     android:tabstripenabled="false"> </tabwidget> 

how achieve this?

try using relative layout

<relativelayout   android:layout_width="match_parent"   android:layout_height="wrap_content">  <tabwidget     android:id="@android:id/tabs"     android:layout_width="match_parent"     android:layout_height="55dp"     android:layout_alignparenttop="true"     android:tabstripenabled="false"> </tabwidget> 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -