act_main.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/main_layout"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <ImageView
  7. android:src="@mipmap/home_blue_bg"
  8. android:adjustViewBounds="true"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content" />
  11. <include
  12. layout="@layout/main_frame_layout"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:layout_marginBottom="@dimen/bottom_height" />
  16. <LinearLayout
  17. android:id="@+id/tab_container"
  18. android:layout_width="match_parent"
  19. android:layout_height="@dimen/bottom_height"
  20. android:layout_alignParentBottom="true"
  21. android:background="@color/white"
  22. android:orientation="horizontal"
  23. android:paddingTop="4dp">
  24. <View
  25. android:layout_width="0dp"
  26. android:layout_height="@dimen/tab_height"
  27. android:layout_weight="1" />
  28. <TextView
  29. android:layout_width="wrap_content"
  30. android:layout_height="@dimen/tab_height"
  31. android:drawableTop="@drawable/drawable_selector_task"
  32. android:gravity="center"
  33. android:minWidth="@dimen/tab_width"
  34. android:text="@string/tab_viewpager_gamestore"
  35. android:textColor="@color/selector_color_main_tab"
  36. android:textSize="10sp" />
  37. <View
  38. android:layout_width="0dp"
  39. android:layout_height="@dimen/tab_height"
  40. android:layout_weight="2" />
  41. <TextView
  42. android:layout_width="wrap_content"
  43. android:layout_height="@dimen/tab_height"
  44. android:drawableTop="@drawable/drawable_selector_askgetmoney"
  45. android:gravity="center"
  46. android:minWidth="@dimen/tab_width"
  47. android:text="@string/mine_hoggerel"
  48. android:textColor="@color/selector_color_main_tab"
  49. android:textSize="10sp" />
  50. <View
  51. android:layout_width="0dp"
  52. android:layout_height="@dimen/tab_height"
  53. android:layout_weight="2" />
  54. <TextView
  55. android:layout_width="wrap_content"
  56. android:layout_height="@dimen/tab_height"
  57. android:drawableTop="@drawable/drawable_selector_personalcenter"
  58. android:gravity="center"
  59. android:minWidth="@dimen/tab_width"
  60. android:text="@string/tab_viewpager_borrowplay"
  61. android:textColor="@color/selector_color_main_tab"
  62. android:textSize="10sp" />
  63. <View
  64. android:layout_width="0dp"
  65. android:layout_height="@dimen/tab_height"
  66. android:layout_weight="1" />
  67. </LinearLayout>
  68. <View
  69. android:id="@+id/tab_line"
  70. android:layout_width="match_parent"
  71. android:layout_height="1px"
  72. android:layout_above="@+id/tab_container"
  73. android:background="#AAe2e2e2" />
  74. </RelativeLayout>