bssdk_fragment_bind_phone.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@drawable/bssdk_dialog"
  7. android:orientation="vertical"
  8. android:padding="1px">
  9. <ImageView
  10. android:id="@+id/iv_bind_phone_back"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:layout_gravity="start"
  14. android:padding="@dimen/DIMEN_8DP"
  15. android:src="@drawable/bssdk_back_w" />
  16. <TextView
  17. android:layout_width="wrap_content"
  18. android:layout_height="42.6dp"
  19. android:layout_gravity="center_horizontal"
  20. android:gravity="center"
  21. android:text="绑定手机"
  22. android:textColor="@color/white" />
  23. <View
  24. android:layout_width="match_parent"
  25. android:layout_height="1px"
  26. android:background="@color/line_bg" />
  27. <LinearLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:layout_marginLeft="@dimen/DIMEN_25DP"
  31. android:layout_marginTop="@dimen/DIMEN_20DP"
  32. android:layout_marginRight="@dimen/DIMEN_25DP"
  33. android:gravity="bottom"
  34. android:orientation="horizontal">
  35. <ImageView
  36. android:layout_width="@dimen/DIMEN_15DP"
  37. android:layout_height="@dimen/DIMEN_15DP"
  38. android:layout_marginEnd="@dimen/DIMEN_18DP"
  39. android:layout_marginRight="@dimen/DIMEN_18DP"
  40. android:src="@drawable/bssdk_phone_icon" />
  41. <EditText
  42. android:id="@+id/et_bind_phone_account"
  43. android:layout_width="0dp"
  44. android:layout_height="wrap_content"
  45. android:layout_gravity="bottom"
  46. android:layout_weight="1"
  47. android:background="@null"
  48. android:hint="@string/bssdk_login_phone_hint"
  49. android:inputType="phone"
  50. android:textColor="@color/white"
  51. android:textColorHint="@color/alpha_50_white"
  52. android:textCursorDrawable="@drawable/bssdk_text_cursor_drawable"
  53. android:textSize="@dimen/TEXT_SIZE_12SP" />
  54. </LinearLayout>
  55. <View
  56. android:layout_width="match_parent"
  57. android:layout_height="1px"
  58. android:layout_marginLeft="@dimen/DIMEN_20DP"
  59. android:layout_marginTop="@dimen/DIMEN_8DP"
  60. android:layout_marginRight="@dimen/DIMEN_20DP"
  61. android:background="@color/line_bg" />
  62. <LinearLayout
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:layout_marginLeft="@dimen/DIMEN_25DP"
  66. android:layout_marginTop="@dimen/DIMEN_20DP"
  67. android:layout_marginRight="@dimen/DIMEN_25DP"
  68. android:gravity="center_vertical"
  69. android:orientation="horizontal">
  70. <ImageView
  71. android:layout_width="@dimen/DIMEN_15DP"
  72. android:layout_height="@dimen/DIMEN_15DP"
  73. android:layout_marginEnd="@dimen/DIMEN_18DP"
  74. android:layout_marginRight="@dimen/DIMEN_18DP"
  75. android:src="@drawable/bssdk_qr_code_icon" />
  76. <EditText
  77. android:id="@+id/et_bind_phone_auth_code"
  78. android:layout_width="0dp"
  79. android:layout_height="wrap_content"
  80. android:layout_weight="1"
  81. android:background="@null"
  82. android:hint="@string/bssdk_login_auth_code_hint"
  83. android:includeFontPadding="false"
  84. android:inputType="number"
  85. android:lineSpacingMultiplier="0.9"
  86. android:maxLength="4"
  87. android:textColor="@color/white"
  88. android:textColorHint="@color/alpha_50_white"
  89. android:textCursorDrawable="@drawable/bssdk_text_cursor_drawable"
  90. android:textSize="@dimen/TEXT_SIZE_12SP"
  91. tools:ignore="TextFields" />
  92. <Button
  93. android:id="@+id/btn_bind_phone_auth_code"
  94. android:layout_width="@dimen/DIMEN_80DP"
  95. android:layout_height="@dimen/DIMEN_24DP"
  96. android:background="@drawable/bssdk_btn_login_bg"
  97. android:enabled="false"
  98. android:text="发送验证码"
  99. android:textColor="@color/white"
  100. android:textSize="@dimen/TEXT_SIZE_12SP" />
  101. </LinearLayout>
  102. <View
  103. android:layout_width="match_parent"
  104. android:layout_height="1px"
  105. android:layout_marginLeft="@dimen/DIMEN_20DP"
  106. android:layout_marginTop="@dimen/DIMEN_8DP"
  107. android:layout_marginRight="@dimen/DIMEN_20DP"
  108. android:background="@color/line_bg" />
  109. <LinearLayout
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. android:layout_marginLeft="@dimen/DIMEN_25DP"
  113. android:layout_marginTop="@dimen/DIMEN_16DP"
  114. android:layout_marginRight="@dimen/DIMEN_25DP"
  115. android:orientation="horizontal">
  116. <CheckBox
  117. android:id="@+id/cv_bind_phone_login_state"
  118. android:layout_width="0dp"
  119. android:layout_height="wrap_content"
  120. android:layout_weight="1"
  121. android:button="@drawable/bssdk_login_check_checkable"
  122. android:gravity="start|center_vertical"
  123. android:paddingStart="@dimen/DIMEN_4DP"
  124. android:paddingEnd="@dimen/DIMEN_4DP"
  125. android:text="30天免登录"
  126. android:textColor="@color/alpha_70_white"
  127. android:textSize="@dimen/TEXT_SIZE_12SP"
  128. android:visibility="gone" />
  129. </LinearLayout>
  130. <Button
  131. android:id="@+id/btn_bind_phone_done"
  132. android:layout_width="match_parent"
  133. android:layout_height="@dimen/DIMEN_40DP"
  134. android:layout_marginLeft="@dimen/DIMEN_20DP"
  135. android:layout_marginTop="@dimen/DIMEN_16DP"
  136. android:layout_marginRight="@dimen/DIMEN_20DP"
  137. android:background="@drawable/bssdk_btn_mobile_login_bg"
  138. android:enabled="false"
  139. android:text="完成"
  140. android:textColor="@color/white"
  141. android:textSize="@dimen/TEXT_SIZE_14SP" />
  142. <ImageView
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:layout_gravity="center_horizontal"
  146. android:layout_marginTop="@dimen/DIMEN_15DP"
  147. android:layout_marginBottom="@dimen/DIMEN_15DP"
  148. android:src="@drawable/bssdk_logo" />
  149. </LinearLayout>