main_activity.xml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <include layout="@layout/title" />
  9. <android.support.constraint.ConstraintLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:background="@color/colorPrimary"
  13. android:paddingTop="@dimen/content_padding_small">
  14. <TextView
  15. android:id="@+id/txt_main_activity_money"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:text="xxx元"
  19. android:textColor="@color/black_text_gray"
  20. app:layout_constraintLeft_toLeftOf="parent"
  21. app:layout_constraintRight_toRightOf="parent"
  22. app:layout_constraintTop_toTopOf="parent" />
  23. <LinearLayout
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:background="@drawable/texe_background_round_theme_left"
  27. android:gravity="center_vertical"
  28. android:orientation="horizontal"
  29. android:paddingBottom="@dimen/content_padding_small"
  30. android:paddingLeft="@dimen/content_padding"
  31. android:paddingRight="@dimen/content_padding"
  32. android:paddingTop="@dimen/content_padding_small"
  33. app:layout_constraintTop_toBottomOf="@+id/txt_main_activity_money"
  34. tools:layout_editor_absoluteX="0dp">
  35. <ImageView
  36. android:id="@+id/img_user"
  37. android:layout_width="20dp"
  38. android:layout_height="20dp"
  39. android:layout_centerVertical="true"
  40. android:src="@color/colorAccent" />
  41. <TextView
  42. android:id="@+id/txt_main_activity_nick"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_marginLeft="@dimen/content_padding_small"
  46. android:text="陈大狗"
  47. android:textColor="@color/theme_sheep_dark"
  48. android:textSize="@dimen/text_size_2" />
  49. </LinearLayout>
  50. <TextView
  51. android:id="@+id/tv_withdraw"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_centerVertical="true"
  55. android:background="@drawable/texe_background_round_theme_right"
  56. android:gravity="center_vertical"
  57. android:paddingBottom="@dimen/content_padding_small"
  58. android:paddingLeft="@dimen/content_padding"
  59. android:paddingTop="@dimen/content_padding_small"
  60. android:text="现金提现"
  61. android:textColor="@color/theme_sheep_dark"
  62. android:textSize="@dimen/text_size_2"
  63. app:layout_constraintRight_toRightOf="parent"
  64. app:layout_constraintTop_toBottomOf="@+id/txt_main_activity_money" />
  65. <com.sheep.jiuyan.samllsheep.page.view.RappTabLayout
  66. android:id="@+id/tab_main_activity"
  67. android:layout_width="344dp"
  68. android:layout_height="48dp"
  69. android:layout_marginTop="@dimen/content_padding_big"
  70. app:layout_constraintTop_toBottomOf="@+id/tv_withdraw"
  71. tools:layout_editor_absoluteX="8dp"></com.sheep.jiuyan.samllsheep.page.view.RappTabLayout>
  72. <android.support.v4.view.ViewPager
  73. android:id="@+id/viewpager_main_activity"
  74. android:layout_width="344dp"
  75. android:layout_height="wrap_content"
  76. android:background="@color/white"
  77. app:layout_constraintTop_toBottomOf="@+id/tab_main_activity"
  78. tools:layout_editor_absoluteX="8dp">
  79. </android.support.v4.view.ViewPager>
  80. </android.support.constraint.ConstraintLayout>
  81. </LinearLayout>