activity_messages.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:background="@color/white_F9F9F9"
  7. android:orientation="vertical">
  8. <RelativeLayout
  9. android:id="@+id/layout_title"
  10. android:layout_width="match_parent"
  11. android:layout_height="?attr/actionBarSize">
  12. <ImageView
  13. android:id="@+id/iv_back"
  14. android:layout_width="wrap_content"
  15. android:layout_height="match_parent"
  16. android:layout_alignParentStart="true"
  17. android:layout_centerVertical="true"
  18. android:gravity="center_vertical"
  19. android:minWidth="?attr/actionBarSize"
  20. android:scaleType="centerInside"
  21. android:src="@drawable/narrow_back_black" />
  22. <ImageView
  23. android:id="@+id/iv_right"
  24. android:layout_width="60dp"
  25. android:layout_height="match_parent"
  26. android:layout_alignParentEnd="true"
  27. android:layout_centerVertical="true"
  28. android:gravity="center_vertical"
  29. android:minWidth="?attr/actionBarSize"
  30. android:scaleType="centerInside"
  31. android:src="@drawable/narrow_back_black"
  32. android:visibility="invisible" />
  33. <android.support.design.widget.TabLayout
  34. android:id="@+id/tab_layout"
  35. android:layout_width="match_parent"
  36. android:layout_height="match_parent"
  37. android:layout_toLeftOf="@id/iv_right"
  38. android:layout_marginStart="30dp"
  39. android:layout_marginEnd="30dp"
  40. android:layout_toRightOf="@+id/iv_back"
  41. app:tabIndicatorHeight="0dp" />
  42. </RelativeLayout>
  43. <View
  44. android:layout_width="match_parent"
  45. android:layout_height="2px"
  46. android:background="@color/gray_5" />
  47. <android.support.v4.view.ViewPager
  48. android:id="@+id/message_view_pager_grd"
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent" />
  51. </LinearLayout>