bdp_view_controller_user_upgrade.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@drawable/bdp_account_bg_upgrade_main"
  6. android:fadingEdge="vertical"
  7. android:fadingEdgeLength="20dip"
  8. android:requiresFadingEdge="vertical" >
  9. <RelativeLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:paddingBottom="8dip"
  13. android:paddingLeft="15dip"
  14. android:paddingRight="15dip"
  15. android:paddingTop="8dip" >
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:gravity="center"
  20. android:orientation="vertical" >
  21. <TextView
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_marginTop="7dip"
  25. android:drawableLeft="@drawable/bdp_account_icon_upgrade_tip"
  26. android:drawablePadding="6dip"
  27. android:text="@string/bdp_account_upgrade_tip"
  28. android:textColor="#ffdff2ff"
  29. android:textSize="14sp" />
  30. <LinearLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_marginBottom="10dip"
  34. android:layout_marginTop="20dip"
  35. android:gravity="center"
  36. android:orientation="horizontal"
  37. android:paddingLeft="10dip"
  38. android:paddingRight="10dip"
  39. android:weightSum="2" >
  40. <TextView
  41. android:id="@+id/txtTabLogin"
  42. android:layout_width="0dip"
  43. android:layout_height="wrap_content"
  44. android:layout_weight="1"
  45. android:gravity="center"
  46. android:text="@string/bdp_account_upgrade_tab_login"
  47. android:textColor="#ffffffff"
  48. android:textSize="18sp" />
  49. <TextView
  50. android:id="@+id/txtTabRegister"
  51. android:layout_width="0dip"
  52. android:layout_height="wrap_content"
  53. android:layout_weight="1"
  54. android:gravity="center"
  55. android:text="@string/bdp_account_upgrade_tab_register"
  56. android:textColor="#ffffffff"
  57. android:textSize="18sp" />
  58. </LinearLayout>
  59. <LinearLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:background="@drawable/bdp_bg_light_gray_round"
  63. android:orientation="vertical"
  64. android:paddingLeft="10dip"
  65. android:paddingRight="10dip" >
  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/edtAccount"
  74. android:layout_width="0dip"
  75. android:layout_height="wrap_content"
  76. android:layout_marginLeft="5dip"
  77. android:layout_weight="1"
  78. android:background="@null"
  79. android:hint="@string/bdp_account_login_hint_account_baidu"
  80. android:maxLength="80"
  81. android:singleLine="true"
  82. android:textColor="@color/bdp_black"
  83. android:textColorHint="@color/bdp_color_cccccc"
  84. android:textCursorDrawable="@null"
  85. android:textSize="15sp" />
  86. <ImageView
  87. android:id="@+id/imgAccountDel"
  88. android:layout_width="30dip"
  89. android:layout_height="40dip"
  90. android:contentDescription="@string/bdp_image"
  91. android:scaleType="center"
  92. android:src="@drawable/bdp_icon_text_clear_selector"
  93. android:visibility="invisible" />
  94. </LinearLayout>
  95. <View
  96. android:layout_width="match_parent"
  97. android:layout_height="1px"
  98. android:background="#ffd1d1d1" />
  99. <!-- 密码 -->
  100. <LinearLayout
  101. android:layout_width="match_parent"
  102. android:layout_height="40dip"
  103. android:gravity="center_vertical"
  104. android:orientation="horizontal" >
  105. <EditText
  106. android:id="@+id/edtPass"
  107. android:layout_width="0dip"
  108. android:layout_height="wrap_content"
  109. android:layout_marginLeft="5dip"
  110. android:layout_weight="1"
  111. android:background="@null"
  112. android:hint="@string/bdp_account_login_hint_pass"
  113. android:imeOptions="actionDone"
  114. android:inputType="textPassword"
  115. android:maxLength="30"
  116. android:singleLine="true"
  117. android:textColor="@color/bdp_black"
  118. android:textColorHint="@color/bdp_color_cccccc"
  119. android:textCursorDrawable="@null"
  120. android:textSize="15sp" />
  121. <ImageView
  122. android:id="@+id/imgPassDel"
  123. android:layout_width="30dip"
  124. android:layout_height="40dip"
  125. android:contentDescription="@string/bdp_image"
  126. android:scaleType="center"
  127. android:src="@drawable/bdp_icon_text_clear_selector"
  128. android:visibility="invisible" />
  129. <ImageView
  130. android:id="@+id/imgShowPwd"
  131. android:layout_width="wrap_content"
  132. android:layout_height="40dip"
  133. android:contentDescription="@string/bdp_image"
  134. android:src="@drawable/bdp_account_icon_pwd_hidden" />
  135. </LinearLayout>
  136. </LinearLayout>
  137. <LinearLayout
  138. android:id="@+id/linVerifycode"
  139. android:layout_width="match_parent"
  140. android:layout_height="40dip"
  141. android:layout_marginTop="3dip"
  142. android:background="@drawable/bdp_bg_light_gray_round_no_padding"
  143. android:gravity="center"
  144. android:orientation="horizontal"
  145. android:paddingLeft="10dip"
  146. android:visibility="gone" >
  147. <EditText
  148. android:id="@+id/edtVerifycode"
  149. android:layout_width="0dip"
  150. android:layout_height="40dip"
  151. android:layout_marginBottom="3dip"
  152. android:layout_marginLeft="5dip"
  153. android:layout_marginTop="3dip"
  154. android:layout_weight="1"
  155. android:background="@null"
  156. android:hint="@string/bdp_account_login_hint_verifycode"
  157. android:maxLength="30"
  158. android:singleLine="true"
  159. android:textColor="@color/bdp_black"
  160. android:textColorHint="@color/bdp_color_text_hint"
  161. android:textCursorDrawable="@null"
  162. android:textSize="15sp" />
  163. <ImageView
  164. android:id="@+id/imgVerifycodeDel"
  165. android:layout_width="wrap_content"
  166. android:layout_height="wrap_content"
  167. android:layout_marginRight="5dip"
  168. android:contentDescription="@string/bdp_image"
  169. android:src="@drawable/bdp_icon_text_clear_selector"
  170. android:visibility="invisible" />
  171. <FrameLayout
  172. android:layout_width="70dip"
  173. android:layout_height="40dip" >
  174. <ImageView
  175. android:id="@+id/imgVerifycode"
  176. android:layout_width="fill_parent"
  177. android:layout_height="fill_parent"
  178. android:contentDescription="@string/bdp_image"
  179. android:paddingBottom="2dip"
  180. android:paddingTop="2dip"
  181. android:scaleType="fitXY"
  182. android:visibility="invisible" />
  183. <RelativeLayout
  184. android:layout_width="fill_parent"
  185. android:layout_height="fill_parent" >
  186. <ImageView
  187. android:id="@+id/imgVerifycodeLoading"
  188. android:layout_width="wrap_content"
  189. android:layout_height="wrap_content"
  190. android:layout_centerInParent="true"
  191. android:layout_centerVertical="true"
  192. android:background="@drawable/bdp_anim_loading_small_blue"
  193. android:contentDescription="@string/bdp_image" />
  194. </RelativeLayout>
  195. </FrameLayout>
  196. <ImageView
  197. android:id="@+id/imgChangeVerifycode"
  198. android:layout_width="wrap_content"
  199. android:layout_height="40dip"
  200. android:contentDescription="@string/bdp_image"
  201. android:scaleType="fitXY"
  202. android:src="@drawable/bdp_account_icon_code_refresh_selector" />
  203. </LinearLayout>
  204. <Button
  205. android:id="@+id/btnSubmit"
  206. android:layout_width="match_parent"
  207. android:layout_height="40dip"
  208. android:layout_marginBottom="10dip"
  209. android:layout_marginTop="18dip"
  210. android:background="@drawable/bdp_btn_blue_bg_normal"
  211. android:enabled="false"
  212. android:text="@string/bdp_account_login"
  213. android:textColor="@color/bdp_white"
  214. android:textSize="18sp" />
  215. <TextView
  216. android:id="@+id/txtFastUpgrade"
  217. android:layout_width="wrap_content"
  218. android:layout_height="wrap_content"
  219. android:layout_marginBottom="5dip"
  220. android:padding="5dip"
  221. android:text="@string/bdp_account_upgrade_fast"
  222. android:textColor="@color/bdp_color_color_666666"
  223. android:textSize="14sp" />
  224. </LinearLayout>
  225. <ImageView
  226. android:id="@+id/imgClose"
  227. android:layout_width="wrap_content"
  228. android:layout_height="wrap_content"
  229. android:layout_alignParentRight="true"
  230. android:layout_alignParentTop="true"
  231. android:contentDescription="@string/bdp_image"
  232. android:padding="5dip"
  233. android:scaleType="centerInside"
  234. android:src="@drawable/bdp_account_icon_upgrade_close_selector" />
  235. </RelativeLayout>
  236. </ScrollView>