zzz_dialog_tab_viewpager.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <TabHost
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:id="@+id/zzz_tabhost"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:orientation="vertical">
  11. <RelativeLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:background="@color/zzz_white">
  15. <HorizontalScrollView
  16. android:id="@+id/zzz_scroll_view"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:background="@color/zzz_dialog_viewpager_tab_color"
  20. android:fillViewport="true"
  21. android:overScrollMode="never"
  22. android:scrollbars="none">
  23. <TabWidget
  24. android:id="@android:id/tabs"
  25. android:layout_width="wrap_content"
  26. android:layout_height="@dimen/zzz_tab_height"
  27. android:background="@color/zzz_dialog_viewpager_tab_color"
  28. android:divider="@null"
  29. android:paddingLeft="@dimen/zzz_sub_tab_padding_left"
  30. android:paddingRight="@dimen/zzz_sub_tab_padding_right">
  31. </TabWidget>
  32. </HorizontalScrollView>
  33. </RelativeLayout>
  34. <FrameLayout
  35. android:layout_width="match_parent"
  36. android:layout_height="match_parent"
  37. android:background="@drawable/zzz_dialog_content_shape">
  38. <com.gionee.gamesdk.business.core.ui.TabViewPager
  39. android:id="@+id/zzz_pager"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"/>
  42. </FrameLayout>
  43. <FrameLayout
  44. android:id="@android:id/tabcontent"
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent">
  47. </FrameLayout>
  48. </LinearLayout>
  49. </TabHost>