activity_login.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:background="@drawable/im_beijing" >
  6. <LinearLayout
  7. android:id="@+id/titlelay"
  8. android:layout_width="fill_parent"
  9. android:layout_height="170dp"
  10. android:background="@color/titlecolor"
  11. android:orientation="vertical" >
  12. <ImageView
  13. android:id="@+id/logo"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_gravity="center"
  17. android:layout_marginTop="30dp"
  18. android:background="@drawable/dongkelogo" />
  19. <ImageView
  20. android:layout_width="250dp"
  21. android:layout_height="60dp"
  22. android:layout_gravity="center"
  23. android:layout_marginTop="20dp"
  24. android:src="@drawable/logoimg" />
  25. </LinearLayout>
  26. <RelativeLayout
  27. android:id="@+id/bodylay"
  28. android:layout_width="fill_parent"
  29. android:layout_height="fill_parent"
  30. android:layout_below="@id/titlelay"
  31. android:layout_marginTop="@dimen/Phone_OR_Pad_20"
  32. android:background="@color/qingcolor" >
  33. <LinearLayout
  34. android:id="@+id/zhangtaolay"
  35. android:layout_width="fill_parent"
  36. android:layout_height="wrap_content"
  37. android:layout_marginLeft="@dimen/Phone_OR_Pad_20"
  38. android:layout_marginRight="@dimen/Phone_OR_Pad_20"
  39. android:layout_marginTop="@dimen/Phone_OR_Pad_20"
  40. android:background="@drawable/loginbutton"
  41. android:orientation="horizontal" >
  42. <ImageView
  43. android:id="@+id/zhangtaologo"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:layout_gravity="center_vertical"
  47. android:layout_marginLeft="@dimen/Phone_OR_Pad_5"
  48. android:background="@drawable/zhangtao" />
  49. <EditText
  50. android:id="@+id/login_zhangtao"
  51. android:layout_width="fill_parent"
  52. android:layout_height="wrap_content"
  53. android:layout_gravity="center_vertical"
  54. android:layout_marginLeft="3dp"
  55. android:background="@null"
  56. android:singleLine="true"
  57. android:textColor="@color/white" />
  58. </LinearLayout>
  59. <LinearLayout
  60. android:id="@+id/yonghulay"
  61. android:layout_width="fill_parent"
  62. android:layout_height="wrap_content"
  63. android:layout_below="@id/zhangtaolay"
  64. android:layout_marginLeft="@dimen/Phone_OR_Pad_20"
  65. android:layout_marginRight="@dimen/Phone_OR_Pad_20"
  66. android:layout_marginTop="@dimen/Phone_OR_Pad_8"
  67. android:background="@drawable/loginbutton"
  68. android:orientation="horizontal" >
  69. <ImageView
  70. android:id="@+id/yonghulogo"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_gravity="center_vertical"
  74. android:layout_marginLeft="@dimen/Phone_OR_Pad_5"
  75. android:background="@drawable/account" />
  76. <EditText
  77. android:id="@+id/login_yonghu"
  78. android:layout_width="fill_parent"
  79. android:layout_height="wrap_content"
  80. android:layout_gravity="center_vertical"
  81. android:layout_marginLeft="3dp"
  82. android:background="@null"
  83. android:singleLine="true"
  84. android:textColor="@color/white" />
  85. </LinearLayout>
  86. <LinearLayout
  87. android:id="@+id/mimalay"
  88. android:layout_width="fill_parent"
  89. android:layout_height="wrap_content"
  90. android:layout_below="@id/yonghulay"
  91. android:layout_marginLeft="@dimen/Phone_OR_Pad_20"
  92. android:layout_marginRight="@dimen/Phone_OR_Pad_20"
  93. android:layout_marginTop="@dimen/Phone_OR_Pad_8"
  94. android:background="@drawable/loginbutton"
  95. android:orientation="horizontal" >
  96. <ImageView
  97. android:id="@+id/passwordlogo"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:layout_gravity="center_vertical"
  101. android:layout_marginLeft="5dp"
  102. android:background="@drawable/cipher" />
  103. <EditText
  104. android:id="@+id/login_mima"
  105. android:layout_width="fill_parent"
  106. android:layout_height="wrap_content"
  107. android:layout_gravity="center_vertical"
  108. android:layout_marginLeft="3dp"
  109. android:background="@null"
  110. android:singleLine="true"
  111. android:textColor="@color/white" />
  112. </LinearLayout>
  113. <LinearLayout
  114. android:layout_width="fill_parent"
  115. android:layout_height="@dimen/ll_layout_height_40"
  116. android:layout_below="@id/mimalay"
  117. android:gravity="center_vertical"
  118. android:orientation="horizontal" >
  119. <LinearLayout
  120. android:layout_width="wrap_content"
  121. android:layout_height="@dimen/ll_layout_height_40"
  122. android:layout_marginLeft="@dimen/Phone_OR_Pad_30"
  123. android:layout_marginRight="@dimen/Phone_OR_Pad_30"
  124. android:layout_marginTop="@dimen/Phone_OR_Pad_10"
  125. android:gravity="center_vertical"
  126. android:orientation="horizontal" >
  127. <ImageView
  128. android:id="@+id/remember_password"
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:background="@drawable/check"
  132. android:gravity="center_vertical" />
  133. <TextView
  134. android:id="@+id/rememberPasswordTxt"
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:layout_marginLeft="3dp"
  138. android:gravity="center_vertical"
  139. android:text="记住密码"
  140. android:textColor="@color/textcolor_select"
  141. android:textSize="@dimen/textsize_18" />
  142. </LinearLayout>
  143. <LinearLayout
  144. android:layout_width="wrap_content"
  145. android:layout_height="@dimen/ll_layout_height_40"
  146. android:layout_marginLeft="@dimen/Phone_OR_Pad_30"
  147. android:layout_marginRight="@dimen/Phone_OR_Pad_30"
  148. android:layout_marginTop="@dimen/Phone_OR_Pad_10"
  149. android:gravity="center_vertical"
  150. android:orientation="horizontal" >
  151. <ImageView
  152. android:id="@+id/auto_login"
  153. android:layout_width="wrap_content"
  154. android:layout_height="wrap_content"
  155. android:background="@drawable/check"
  156. android:gravity="center_vertical" />
  157. <TextView
  158. android:id="@+id/logint1"
  159. android:layout_width="wrap_content"
  160. android:layout_height="wrap_content"
  161. android:layout_marginLeft="3dp"
  162. android:gravity="center_vertical"
  163. android:text="自动登录"
  164. android:textColor="@color/textcolor_select"
  165. android:textSize="@dimen/textsize_18" />
  166. </LinearLayout>
  167. </LinearLayout>
  168. <LinearLayout
  169. android:layout_width="fill_parent"
  170. android:layout_height="wrap_content"
  171. android:layout_alignParentBottom="true"
  172. android:orientation="horizontal" >
  173. <Button
  174. android:id="@+id/login_login"
  175. android:layout_width="fill_parent"
  176. android:layout_height="@dimen/Phone_OR_Pad_50"
  177. android:layout_marginRight="5dp"
  178. android:layout_weight="1"
  179. android:background="@drawable/login_btn_selector"
  180. android:text="登录"
  181. android:textColor="@color/white"
  182. android:textSize="@dimen/textsize_22" />
  183. <Button
  184. android:id="@+id/login_set"
  185. android:layout_width="fill_parent"
  186. android:layout_height="@dimen/Phone_OR_Pad_50"
  187. android:layout_weight="1"
  188. android:background="@drawable/login_btn_selector"
  189. android:text="设置"
  190. android:textColor="@color/white"
  191. android:textSize="@dimen/textsize_22" />
  192. </LinearLayout>
  193. </RelativeLayout>
  194. </RelativeLayout>