jmlogin_main_new.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/linear"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:gravity="center"
  7. android:orientation="vertical"
  8. xmlns:tools="http://schemas.android.com/tools">
  9. <LinearLayout
  10. android:layout_width="@dimen/jm_login_width"
  11. android:layout_height="@dimen/jm_login_height"
  12. android:paddingLeft="15dp"
  13. android:paddingRight="15dp"
  14. android:background="@drawable/jm_login_bg"
  15. android:orientation="vertical" >
  16. <RelativeLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="@dimen/jm_login_top_height"
  19. android:orientation="vertical" >
  20. <ImageView
  21. android:layout_width="@dimen/jm_login_logo_width"
  22. android:layout_height="@dimen/jm_login_logo_height"
  23. android:layout_centerVertical="true"
  24. android:scaleType="centerInside"
  25. android:src="@drawable/jm_logo_new" />
  26. <LinearLayout
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_centerHorizontal="true"
  30. android:layout_centerVertical="true"
  31. android:orientation="horizontal">
  32. <TextView
  33. android:id="@+id/userlgbt"
  34. android:layout_width="@dimen/jm_login_switch_width"
  35. android:layout_height="@dimen/jm_login_switch_height"
  36. android:gravity="center"
  37. android:textColor="@color/jmfont_black"
  38. android:text="@string/moblie_bt_user"
  39. android:textSize="12sp"
  40. android:background="@drawable/jm_select_left_normal"/>
  41. <TextView
  42. android:layout_width="@dimen/jm_login_switch_width"
  43. android:layout_height="@dimen/jm_login_switch_height"
  44. android:gravity="center"
  45. android:textColor="@color/jmfont_black"
  46. android:text="@string/moblie_login_title"
  47. android:textSize="12sp"
  48. android:background="@drawable/jm_select_right_checked"/>
  49. </LinearLayout>
  50. <FrameLayout
  51. android:layout_width="@dimen/jm_login_logo_width"
  52. android:layout_height="@dimen/jm_login_logo_height"
  53. android:layout_alignParentRight="true"
  54. android:layout_centerVertical="true"
  55. android:gravity="center_horizontal"
  56. android:orientation="vertical">
  57. <ImageView
  58. android:id="@+id/ivkefu"
  59. android:layout_width="26dp"
  60. android:layout_height="30dp"
  61. android:layout_gravity="center_horizontal"
  62. android:scaleType="centerInside"
  63. android:src="@drawable/jm_kefu_new" />
  64. <TextView
  65. android:id="@+id/tvversion"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_gravity="bottom|center_horizontal"
  69. tools:text="v1.0.1"
  70. android:textColor="#d5dad3"
  71. android:textSize="10sp"/>
  72. </FrameLayout>
  73. </RelativeLayout>
  74. <LinearLayout
  75. android:layout_width="match_parent"
  76. android:layout_height="@dimen/jm_input_height"
  77. android:orientation="horizontal"
  78. android:gravity="center_vertical"
  79. android:background="@drawable/jm_input_bg">
  80. <ImageView
  81. android:layout_width="@dimen/jm_login_icon_width"
  82. android:layout_height="@dimen/jm_login_icon_height"
  83. android:layout_marginLeft="10dp"
  84. android:layout_marginRight="10dp"
  85. android:scaleType="centerInside"
  86. android:src="@drawable/jm_phone"/>
  87. <EditText
  88. android:id="@+id/edit_iphone"
  89. android:layout_width="match_parent"
  90. android:layout_height="35dp"
  91. android:background="@null"
  92. android:gravity="center_vertical"
  93. android:hint="@string/moblie_edit_hint"
  94. android:imeOptions="actionNext"
  95. android:inputType="phone"
  96. android:maxLength="25"
  97. android:textCursorDrawable="@null"
  98. android:nextFocusForward="@+id/edit_code"
  99. android:singleLine="true"
  100. android:textColor="#000000"
  101. android:textColorHint="#d5dad3"
  102. android:textSize="18sp" >
  103. </EditText>
  104. </LinearLayout>
  105. <LinearLayout
  106. android:layout_width="match_parent"
  107. android:gravity="center_vertical"
  108. android:layout_height="@dimen/jm_input_height"
  109. android:orientation="horizontal"
  110. android:layout_marginTop="10dp"
  111. android:background="@drawable/jm_input_bg">
  112. <ImageView
  113. android:layout_width="@dimen/jm_login_icon_width"
  114. android:layout_height="@dimen/jm_login_icon_height"
  115. android:layout_marginLeft="10dp"
  116. android:layout_marginRight="10dp"
  117. android:scaleType="centerInside"
  118. android:src="@drawable/jm_code"/>
  119. <EditText
  120. android:id="@+id/edit_code"
  121. android:layout_width="0dp"
  122. android:layout_weight="1"
  123. android:layout_height="35dp"
  124. android:background="@null"
  125. android:gravity="center_vertical"
  126. android:hint="@string/moblie_edit_code_hint"
  127. android:imeOptions="actionDone"
  128. android:inputType="number"
  129. android:textCursorDrawable="@null"
  130. android:maxLength="6"
  131. android:singleLine="true"
  132. android:textColor="#000000"
  133. android:textColorHint="#d5dad3"
  134. android:textSize="18sp" >
  135. </EditText>
  136. <TextView
  137. android:id="@+id/ibcode"
  138. android:layout_width="70dp"
  139. android:layout_height="34dp"
  140. android:layout_margin="6dp"
  141. android:gravity="center"
  142. android:background="@drawable/jm_blues_codebtn_style_new"
  143. android:padding="5sp"
  144. android:text="@string/moblie_bt_code"
  145. android:textColor="@color/jmfont_white"
  146. android:textSize="11sp" />
  147. </LinearLayout>
  148. <TextView
  149. android:id="@+id/mobilebt"
  150. android:layout_width="match_parent"
  151. android:layout_height="@dimen/jm_input_height"
  152. android:layout_marginTop="@dimen/jm_login_submit_margin_top"
  153. android:gravity="center"
  154. android:background="@drawable/jm_blues_codebtn_style_new"
  155. android:text="@string/moblie_bt_login"
  156. android:textColor="@color/jmfont_white"
  157. android:textSize="18sp" />
  158. <RelativeLayout
  159. android:layout_width="match_parent"
  160. android:layout_height="wrap_content"
  161. android:layout_marginTop="10dp" >
  162. <TextView
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_alignParentRight="true"
  166. android:layout_centerVertical="true"
  167. android:id="@+id/tvvistor"
  168. android:text="@string/moblie_text_visitor"
  169. android:textColor="@color/jmfont_gray"
  170. android:textSize="16sp" />
  171. <TextView
  172. android:id="@+id/ivregister"
  173. android:layout_width="wrap_content"
  174. android:layout_height="wrap_content"
  175. android:layout_alignParentLeft="true"
  176. android:layout_centerVertical="true"
  177. android:text="@string/moblie_text_register"
  178. android:textColor="@color/jmfont_gray"
  179. android:textSize="16sp" />
  180. </RelativeLayout>
  181. </LinearLayout>
  182. </LinearLayout>