activity_login.xml 7.7 KB

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