android - SlidingTabLayout covering the first View -


my slidingtablayout covering first view of fragment

images:

what want:

http://i.stack.imgur.com/w4pcd.png

what get:

http://i.stack.imgur.com/wd4dp.png

helpactivity:

<mytab.tools.slidingtablayout     android:id="@+id/tabs"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:elevation="2dp"     android:fitssystemwindows="true"     android:background="@android:color/holo_green_dark"/>  <android.support.v4.view.viewpager     android:id="@+id/pager"      android:layout_height="match_parent"     android:layout_width="match_parent"     android:layout_weight="1"     ></android.support.v4.view.viewpager> 

my fragmentxml:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/help1_layout"     android:orientation="vertical" android:layout_width="match_parent"     android:layout_height="match_parent">      <scrollview         android:layout_width="match_parent"         android:layout_height="match_parent">     <linearlayout         android:layout_width="fill_parent"         android:orientation="vertical"         android:layout_height="fill_parent">           <button             android:layout_width="wrap_content"             android:layout_height="wrap_content" />          <button             android:layout_width="wrap_content"             android:layout_height="wrap_content" />         <button            android:layout_width="wrap_content"            android:layout_height="wrap_content" />          <imageview             android:layout_width="match_parent"             android:id="@+id/help1_tela"             android:layout_height="match_parent" />      </linearlayout>     </scrollview> </relativelayout> 

and tab , pager started in general way, not modifications, copy , paste google slidingtablayout class , initialize pager, =(

<mytab.tools.slidingtablayout android:id="@+id/tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:elevation="2dp" android:fitssystemwindows="true" //remove line android:background="@android:color/holo_green_dark"/> 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -