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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -