bdp_view_controller_account_phonereg.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. android:layout_margin="12dip"
  6. android:orientation="vertical"
  7. android:background="@drawable/bdp_bg_white_round" >
  8. <!-- 标题 -->
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:gravity="center_vertical">
  13. <View
  14. android:layout_width="45dip"
  15. android:layout_height="48dip"
  16. android:visibility="invisible"
  17. />
  18. <View
  19. android:layout_width="0dip"
  20. android:layout_height="1dip"
  21. android:layout_weight="1"
  22. />
  23. <!-- title -->
  24. <TextView
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_margin="10dip"
  28. android:text="@string/bdp_account_phonereg_title"
  29. android:textSize="16sp"
  30. android:textColor="@color/bdp_black"
  31. android:drawableLeft="@drawable/bdp_logo_baidu_top"
  32. android:drawablePadding="5dp"
  33. android:gravity="center"
  34. />
  35. <View
  36. android:layout_width="0dip"
  37. android:layout_height="1dip"
  38. android:layout_weight="1"
  39. />
  40. <!-- 关闭按钮 -->
  41. <ImageView
  42. android:id="@+id/imgClose"
  43. android:layout_width="45dip"
  44. android:layout_height="45dip"
  45. android:scaleType="centerInside"
  46. android:src="@drawable/bdp_icon_close_selector"
  47. android:contentDescription="@string/bdp_image"
  48. />
  49. </LinearLayout>
  50. <!-- 子视图 -->
  51. <ScrollView
  52. android:layout_width="match_parent"
  53. android:layout_height="match_parent"
  54. android:layout_marginTop="2dip"
  55. android:padding="10dip"
  56. android:scrollbarStyle="outsideOverlay">
  57. <LinearLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:orientation="vertical" >
  61. <LinearLayout
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:background="@drawable/bdp_bg_light_gray_round"
  65. android:orientation="vertical">
  66. <!-- 手机号 -->
  67. <LinearLayout
  68. android:layout_width="match_parent"
  69. android:layout_height="40dip"
  70. android:gravity="center_vertical"
  71. android:orientation="horizontal" >
  72. <EditText
  73. android:id="@+id/edtPhone"
  74. android:layout_width="0dip"
  75. android:layout_height="wrap_content"
  76. android:layout_weight="1"
  77. android:layout_marginLeft="10dip"
  78. android:hint="@string/bdp_account_phonereg_hint_phone"
  79. android:textColorHint="@color/bdp_color_text_hint"
  80. android:inputType="phone"
  81. android:imeOptions="actionDone"
  82. android:maxLength="30"
  83. android:textColor="@color/bdp_black"
  84. android:textSize="15sp"
  85. android:typeface="sans"
  86. android:singleLine="true"
  87. android:background="@null" />
  88. <ImageView
  89. android:id="@+id/imgPhoneDel"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_marginRight="5dip"
  93. android:contentDescription="@string/bdp_image"
  94. android:src="@drawable/bdp_icon_text_clear_selector"
  95. android:visibility="invisible" />
  96. </LinearLayout>
  97. <View
  98. android:layout_width="match_parent"
  99. android:layout_height="1px"
  100. android:background="#ffd1d1d1" />
  101. <!-- 短信验证码 -->
  102. <LinearLayout
  103. android:layout_width="match_parent"
  104. android:layout_height="40dip"
  105. android:gravity="center_vertical"
  106. android:orientation="horizontal">
  107. <LinearLayout
  108. android:layout_width="0dip"
  109. android:layout_height="40dip"
  110. android:layout_weight="1"
  111. android:gravity="center_vertical"
  112. android:orientation="horizontal" >
  113. <EditText
  114. android:id="@+id/edtVerifycode"
  115. android:layout_width="0dip"
  116. android:layout_height="wrap_content"
  117. android:layout_weight="1"
  118. android:layout_marginLeft="10dip"
  119. android:hint="@string/bdp_account_phonereg_hint_sms_verifycode"
  120. android:textColorHint="@color/bdp_color_text_hint"
  121. android:textColor="@color/bdp_black"
  122. android:textSize="15sp"
  123. android:typeface="sans"
  124. android:singleLine="true"
  125. android:background="@null" />
  126. <ImageView
  127. android:id="@+id/imgVerifycodeDel"
  128. android:layout_width="wrap_content"
  129. android:layout_height="wrap_content"
  130. android:layout_marginRight="5dip"
  131. android:contentDescription="@string/bdp_image"
  132. android:src="@drawable/bdp_icon_text_clear_selector"
  133. android:visibility="invisible" />
  134. </LinearLayout>
  135. <!-- 获取短信验证码 -->
  136. <Button
  137. android:id="@+id/btnGetVerifycode"
  138. android:layout_width="100dip"
  139. android:layout_height="32dip"
  140. android:layout_marginLeft="10dip"
  141. android:background="@drawable/bdp_btn_blue_selector"
  142. android:paddingLeft="5dip"
  143. android:paddingRight="5dip"
  144. android:singleLine="true"
  145. android:text="@string/bdp_account_phonereg_verifycode_get"
  146. android:textColor="@color/bdp_white"
  147. android:textSize="12sp" />
  148. </LinearLayout>
  149. </LinearLayout>
  150. <!-- 注册 -->
  151. <Button
  152. android:id="@+id/btnReg"
  153. android:layout_width="match_parent"
  154. android:layout_height="38dip"
  155. android:layout_marginTop="15dip"
  156. android:layout_marginBottom="30dip"
  157. android:text="@string/bdp_account_phonereg_btn_reg"
  158. android:textColor="@color/bdp_white"
  159. android:textSize="15sp"
  160. android:background="@drawable/bdp_btn_yellow_selector"
  161. />
  162. </LinearLayout>
  163. </ScrollView>
  164. </LinearLayout>