activity_idauth.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <include layout="@layout/view_title"/>
  7. <RelativeLayout
  8. android:id="@+id/rl_account"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:padding="@dimen/default_content_margin">
  12. <TextView
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:textSize="@dimen/company_16sp"
  16. android:textColor="@color/color_333"
  17. android:text="我是家长"/>
  18. <android.support.v7.widget.SwitchCompat
  19. android:id="@+id/sb_patriarch"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_alignParentRight="true"
  23. android:layout_centerVertical="true"
  24. android:theme="@style/Color1SwitchStyle" />
  25. </RelativeLayout>
  26. <include layout="@layout/view_default_line"/>
  27. <RelativeLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:padding="@dimen/default_content_margin">
  31. <TextView
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:textSize="@dimen/company_16sp"
  35. android:textColor="@color/color_333"
  36. android:text="真实姓名"/>
  37. <EditText
  38. android:id="@+id/edit_username"
  39. android:layout_width="wrap_content"
  40. android:layout_height="20dp"
  41. android:layout_alignParentRight="true"
  42. android:layout_centerVertical="true"
  43. android:gravity="right"
  44. android:background="@null"
  45. android:hint="请输入真实姓名"/>
  46. </RelativeLayout>
  47. <include layout="@layout/view_default_line"/>
  48. <RelativeLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:padding="@dimen/default_content_margin">
  52. <TextView
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:textSize="@dimen/company_16sp"
  56. android:textColor="@color/color_333"
  57. android:text="身份认证"/>
  58. <EditText
  59. android:id="@+id/edit_idcard"
  60. android:layout_width="wrap_content"
  61. android:layout_height="20dp"
  62. android:layout_alignParentRight="true"
  63. android:layout_centerVertical="true"
  64. android:gravity="right"
  65. android:background="@null"
  66. android:hint="请输入身份证号"/>
  67. </RelativeLayout>
  68. <include layout="@layout/view_default_line"/>
  69. <LinearLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:padding="@dimen/company_10dp">
  73. <CheckBox
  74. android:id="@+id/cb_agree"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:theme="@style/Color1SwitchStyle"/>
  78. <TextView
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:textSize="@dimen/company_14sp"
  82. android:textColor="@color/color_666"
  83. android:text="我已阅读并同意"/>
  84. <TextView
  85. android:id="@+id/tv_agreement"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:textSize="@dimen/company_14sp"
  89. android:textColor="@color/main_color"
  90. android:text="《身份认证协议》"/>
  91. </LinearLayout>
  92. <Button
  93. android:id="@+id/btn_submit"
  94. android:layout_width="match_parent"
  95. android:layout_height="@dimen/company_50dp"
  96. android:layout_marginTop="@dimen/company_20dp"
  97. android:layout_marginLeft="@dimen/default_content_margin"
  98. android:layout_marginRight="@dimen/default_content_margin"
  99. android:background="@drawable/shape_default_btn_bg"
  100. android:textColor="@color/white"
  101. android:textSize="@dimen/company_16sp"
  102. android:text="确定"/>
  103. </LinearLayout>