五个页面  代码如下:    图片资源链接: https://pan.baidu.com/s/1jIoTDGE

  //  第一个 

  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@drawable/bg_main"
  6. android:padding="10dp" >
  7.  
  8. <ImageView
  9. android:id="@+id/imageView1"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:layout_alignParentRight="true"
  13. android:src="@drawable/bt_setting_n" />
  14.  
  15. <LinearLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_centerInParent="true"
  19. android:orientation="vertical" >
  20.  
  21. <RelativeLayout
  22. android:onClick="onStart"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:background="@drawable/main_n"
  26. android:padding="10dp" >
  27.  
  28. <ImageView
  29. android:id="@+id/iv_add"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_centerVertical="true"
  33. android:src="@drawable/medical_tijian_iv" />
  34.  
  35. <LinearLayout
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:layout_centerVertical="true"
  39. android:layout_marginLeft="10dp"
  40. android:layout_toRightOf="@id/iv_add"
  41. android:orientation="vertical" >
  42.  
  43. <TextView
  44. android:id="@+id/tv_1"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:text="手机体检"
  48. android:textColor="#fff"
  49. android:textSize="18sp" />
  50.  
  51. <TextView
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:text="您已经很长时间没体检了"
  55. android:textColor="#fff"
  56. android:textSize="12sp" />
  57. </LinearLayout>
  58. </RelativeLayout>
  59.  
  60. <LinearLayout
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:layout_marginTop="2dp"
  64. android:orientation="horizontal" >
  65.  
  66. <ImageView
  67. android:layout_width="0dp"
  68. android:layout_height="wrap_content"
  69. android:layout_marginRight="2dp"
  70. android:layout_weight="1"
  71. android:background="@drawable/main_n"
  72. android:src="@drawable/bt_backgroundm" />
  73.  
  74. <ImageView
  75. android:layout_width="0dp"
  76. android:layout_height="wrap_content"
  77. android:layout_marginRight="2dp"
  78. android:layout_weight="1"
  79. android:background="@drawable/main_n"
  80. android:src="@drawable/bt_injectsms" />
  81.  
  82. <ImageView
  83. android:layout_width="0dp"
  84. android:layout_height="wrap_content"
  85. android:layout_weight="1"
  86. android:background="@drawable/main_n"
  87. android:src="@drawable/bt_safesend" />
  88. </LinearLayout>
  89.  
  90. <LinearLayout
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:layout_marginTop="2dp"
  94. android:orientation="horizontal" >
  95.  
  96. <ImageView
  97. android:layout_width="0dp"
  98. android:layout_height="wrap_content"
  99. android:layout_marginRight="2dp"
  100. android:layout_weight="1"
  101. android:background="@drawable/main_n"
  102. android:src="@drawable/bt_traffic" />
  103.  
  104. <ImageView
  105. android:layout_width="0dp"
  106. android:layout_height="wrap_content"
  107. android:layout_marginRight="2dp"
  108. android:layout_weight="1"
  109. android:background="@drawable/main_n"
  110. android:src="@drawable/bt_notification" />
  111.  
  112. <ImageView
  113. android:layout_width="0dp"
  114. android:layout_height="wrap_content"
  115. android:layout_weight="1"
  116. android:background="@drawable/main_n"
  117. android:src="@drawable/bt_softwarem" />
  118. </LinearLayout>
  119.  
  120. <LinearLayout
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:layout_marginTop="2dp"
  124. android:orientation="horizontal" >
  125.  
  126. <ImageView
  127. android:layout_width="0dp"
  128. android:layout_height="wrap_content"
  129. android:layout_marginRight="2dp"
  130. android:layout_weight="1"
  131. android:background="@drawable/main_n"
  132. android:src="@drawable/bt_tools" />
  133.  
  134. <ImageView
  135. android:layout_width="0dp"
  136. android:layout_height="wrap_content"
  137. android:layout_marginRight="2dp"
  138. android:layout_weight="1"
  139. android:background="@drawable/main_n"
  140. android:src="@drawable/bt_protection" />
  141.  
  142. <ImageView
  143. android:layout_width="0dp"
  144. android:layout_height="wrap_content"
  145. android:layout_weight="1" >
  146. </ImageView>
  147. </LinearLayout>
  148. </LinearLayout>
  149.  
  150. </RelativeLayout>

  // 第二个

  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@drawable/metro_default_bg"
  6. android:padding="20dp" >
  7.  
  8. <RelativeLayout
  9. android:id="@+id/rl"
  10. android:layout_width="wrap_content"
  11. android:layout_height="match_parent"
  12. android:layout_alignParentRight="true" >
  13.  
  14. <ImageView
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:src="@drawable/dd_user_default_icon_2x" />
  18.  
  19. <ImageView
  20. android:id="@+id/img_set"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_alignParentBottom="true"
  24. android:layout_centerHorizontal="true"
  25. android:layout_marginBottom="20dp"
  26. android:src="@drawable/dd_zaker_setting_nor_2x" />
  27.  
  28. <ImageView
  29. android:id="@+id/img_1"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_above="@id/img_set"
  33. android:layout_centerHorizontal="true"
  34. android:layout_marginBottom="50dp"
  35. android:src="@drawable/dd_zaker_rss_nor_2x" />
  36.  
  37. <ImageView
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_above="@id/img_1"
  41. android:layout_centerHorizontal="true"
  42. android:layout_marginBottom="50dp"
  43. android:src="@drawable/dd_zaker_faver_nor_2x" />
  44. </RelativeLayout>
  45.  
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:layout_marginRight="20dp"
  50. android:layout_toLeftOf="@id/rl"
  51. android:orientation="vertical" >
  52.  
  53. <LinearLayout
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_marginBottom="20dp"
  57. android:orientation="horizontal" >
  58.  
  59. <TextView
  60. android:layout_width="0dp"
  61. android:layout_height="wrap_content"
  62. android:layout_marginRight="20dp"
  63. android:layout_weight="1"
  64. android:background="#60cccccc"
  65. android:clickable="true"
  66. android:drawablePadding="15dp"
  67. android:drawableTop="@drawable/module_615532"
  68. android:gravity="center_horizontal"
  69. android:padding="30dp"
  70. android:text="考试动态"
  71. android:textColor="#fff"
  72. android:onClick="onStart2"
  73. android:textSize="15sp" />
  74.  
  75. <TextView
  76. android:layout_width="0dp"
  77. android:layout_height="wrap_content"
  78. android:layout_weight="1"
  79. android:background="#60cccccc"
  80. android:drawablePadding="15dp"
  81. android:drawableTop="@drawable/module_615531"
  82. android:gravity="center_horizontal"
  83. android:padding="30dp"
  84. android:text="提分经验"
  85. android:textColor="#fff"
  86. android:textSize="15sp" />
  87. </LinearLayout>
  88. <LinearLayout
  89. android:layout_width="match_parent"
  90. android:layout_height="wrap_content"
  91. android:layout_marginBottom="20dp"
  92. android:orientation="horizontal" >
  93.  
  94. <TextView
  95. android:layout_width="0dp"
  96. android:layout_height="wrap_content"
  97. android:layout_marginRight="20dp"
  98. android:layout_weight="1"
  99. android:background="#60cccccc"
  100. android:drawablePadding="15dp"
  101. android:drawableTop="@drawable/module_615530"
  102. android:gravity="center_horizontal"
  103. android:padding="30dp"
  104. android:text="学习周边"
  105. android:textColor="#fff"
  106. android:textSize="15sp" />
  107.  
  108. <TextView
  109. android:layout_width="0dp"
  110. android:layout_height="wrap_content"
  111. android:layout_weight="1"
  112. android:background="#60cccccc"
  113. android:drawablePadding="15dp"
  114. android:drawableTop="@drawable/module_615535"
  115. android:gravity="center_horizontal"
  116. android:padding="30dp"
  117. android:text="学霸社区"
  118. android:textColor="#fff"
  119. android:textSize="15sp" />
  120. </LinearLayout>
  121. <LinearLayout
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content"
  124. android:layout_marginBottom="20dp"
  125. android:orientation="horizontal" >
  126.  
  127. <TextView
  128. android:layout_width="0dp"
  129. android:layout_height="wrap_content"
  130. android:layout_marginRight="20dp"
  131. android:layout_weight="1"
  132. android:background="#60cccccc"
  133. android:drawablePadding="15dp"
  134. android:drawableTop="@drawable/module_615534"
  135. android:gravity="center_horizontal"
  136. android:padding="30dp"
  137. android:text="投稿中心"
  138. android:textColor="#fff"
  139. android:textSize="15sp" />
  140.  
  141. <TextView
  142. android:layout_width="0dp"
  143. android:layout_height="wrap_content"
  144. android:layout_weight="1"
  145. android:background="#60cccccc"
  146. android:drawablePadding="15dp"
  147. android:drawableTop="@drawable/module_615533"
  148. android:gravity="center_horizontal"
  149. android:padding="30dp"
  150. android:text="天气助手"
  151. android:textColor="#fff"
  152. android:textSize="15sp" />
  153. </LinearLayout>
  154. </LinearLayout>
  155.  
  156. </RelativeLayout>

  // 第三、四、五

  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@drawable/dfr" >
  6.  
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_marginTop="50dp"
  11. android:gravity="center_horizontal" >
  12.  
  13. <ImageView
  14. android:id="@+id/img"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:src="@drawable/anq" />
  18.  
  19. <TextView
  20. android:id="@+id/tv_music"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_marginLeft="10dp"
  24. android:layout_toRightOf="@id/img"
  25. android:text="酷狗音乐"
  26. android:textColor="#fff"
  27. android:textSize="28sp" />
  28.  
  29. <TextView
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_alignBottom="@id/img"
  33. android:layout_below="@id/tv_music"
  34. android:layout_marginLeft="10dp"
  35. android:layout_toRightOf="@id/img"
  36. android:gravity="center"
  37. android:text="不 变 的 只 有 音 乐"
  38. android:textColor="#fff"
  39. android:textSize="14sp" />
  40. </RelativeLayout>
  41.  
  42. <RelativeLayout
  43. android:id="@+id/rl_bottom"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:layout_alignParentBottom="true"
  47. android:layout_marginBottom="20dp" >
  48.  
  49. <TextView
  50. android:id="@+id/tv_qq"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_centerHorizontal="true"
  54. android:layout_marginLeft="40dp"
  55. android:layout_marginRight="40dp"
  56. android:drawablePadding="7dp"
  57. android:drawableTop="@drawable/b12"
  58. android:gravity="center"
  59. android:text="QQ"
  60. android:textColor="#fff"
  61. android:textSize="12sp" />
  62.  
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_toLeftOf="@id/tv_qq"
  67. android:drawablePadding="7dp"
  68. android:drawableTop="@drawable/b10"
  69. android:gravity="center"
  70. android:text="微博"
  71. android:textColor="#fff"
  72. android:textSize="12sp" />
  73.  
  74. <TextView
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:layout_toRightOf="@id/tv_qq"
  78. android:drawablePadding="7dp"
  79. android:drawableTop="@drawable/dfi"
  80. android:text="微信"
  81. android:textColor="#fff"
  82. android:textSize="12sp" />
  83. </RelativeLayout>
  84.  
  85. <LinearLayout
  86. android:id="@+id/ll"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:layout_above="@id/rl_bottom"
  90. android:layout_marginBottom="20dp"
  91. android:orientation="horizontal" >
  92.  
  93. <View
  94. android:layout_width="0dp"
  95. android:layout_height="1dp"
  96. android:layout_gravity="center"
  97. android:layout_marginLeft="20dp"
  98. android:layout_weight="2"
  99. android:alpha="0.3"
  100. android:background="@android:color/white" />
  101.  
  102. <TextView
  103. android:layout_width="0dp"
  104. android:layout_height="wrap_content"
  105. android:layout_marginLeft="3dp"
  106. android:layout_marginRight="3dp"
  107. android:layout_weight="1"
  108. android:gravity="center"
  109. android:text="其他登录方式"
  110. android:textColor="#fff"
  111. android:textSize="14sp" />
  112.  
  113. <View
  114. android:layout_width="0dp"
  115. android:layout_height="1dp"
  116. android:layout_gravity="center"
  117. android:layout_marginRight="20dp"
  118. android:layout_weight="2"
  119. android:alpha="0.3"
  120. android:background="@android:color/white" />
  121. </LinearLayout>
  122.  
  123. <LinearLayout
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:layout_above="@id/ll"
  127. android:layout_marginBottom="20dp"
  128. android:gravity="center_horizontal"
  129. android:orientation="vertical" >
  130.  
  131. <ImageView
  132. android:id="@+id/img_login"
  133. android:layout_width="wrap_content"
  134. android:layout_height="0dp"
  135. android:layout_marginBottom="8dp"
  136. android:layout_weight="1"
  137. android:src="@drawable/login" />
  138.  
  139. <ImageView
  140. android:id="@+id/img_register"
  141. android:layout_width="wrap_content"
  142. android:layout_height="0dp"
  143. android:layout_weight="1"
  144. android:src="@drawable/register" />
  145. </LinearLayout>
  146.  
  147. </RelativeLayout>
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical" >
  6.  
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="0dp"
  10. android:layout_weight="1"
  11. android:background="@drawable/back"
  12. android:orientation="vertical" >
  13.  
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:orientation="horizontal" >
  18.  
  19. <ImageView
  20. android:layout_margin="5dp"
  21. android:layout_width="0dp"
  22. android:layout_height="wrap_content"
  23. android:layout_weight="1"
  24. android:src="@drawable/kugou" />
  25.  
  26. <TextView
  27. android:layout_width="0dp"
  28. android:layout_height="wrap_content"
  29. android:layout_gravity="center_vertical"
  30. android:layout_weight="1"
  31. android:gravity="center"
  32. android:text="听"
  33. android:textColor="#fff"
  34. android:textSize="18sp" />
  35.  
  36. <TextView
  37. android:layout_width="0dp"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="center_vertical"
  40. android:layout_weight="1"
  41. android:gravity="center"
  42. android:text="看"
  43. android:textColor="#fff"
  44. android:textSize="18sp" />
  45.  
  46. <TextView
  47. android:layout_width="0dp"
  48. android:layout_height="wrap_content"
  49. android:layout_gravity="center_vertical"
  50. android:layout_weight="1"
  51. android:gravity="center"
  52. android:text="唱"
  53. android:textColor="#fff"
  54. android:textSize="18sp" />
  55.  
  56. <ImageView
  57. android:layout_width="0dp"
  58. android:layout_height="wrap_content"
  59. android:layout_gravity="center_vertical"
  60. android:layout_weight="1"
  61. android:src="@drawable/skin_kg_comm_ic_main_top_search_normal" />
  62. </LinearLayout>
  63.  
  64. <LinearLayout
  65. android:layout_width="match_parent"
  66. android:padding="10dp"
  67. android:layout_height="wrap_content"
  68. android:orientation="horizontal" >
  69.  
  70. <TextView
  71. android:layout_width="0dp"
  72. android:layout_height="wrap_content"
  73. android:layout_weight="1"
  74. android:drawableTop="@drawable/skin_kg_navigation_fav_normal"
  75. android:gravity="center"
  76. android:text="我喜欢"
  77. android:textColor="#fff" />
  78.  
  79. <TextView
  80. android:layout_width="0dp"
  81. android:layout_height="wrap_content"
  82. android:layout_weight="1"
  83. android:drawableTop="@drawable/skin_kg_navigation_playlist_normal"
  84. android:gravity="center"
  85. android:text="歌单"
  86. android:textColor="#fff" />
  87.  
  88. <TextView
  89. android:layout_width="0dp"
  90. android:layout_height="wrap_content"
  91. android:layout_weight="1"
  92. android:drawableTop="@drawable/skin_kg_navigation_download_normal"
  93. android:gravity="center"
  94. android:text="下载"
  95. android:textColor="#fff" />
  96.  
  97. <TextView
  98. android:layout_width="0dp"
  99. android:layout_height="wrap_content"
  100. android:layout_weight="1"
  101. android:drawableTop="@drawable/skin_kg_navigation_recent_normal"
  102. android:gravity="center"
  103. android:text="最近"
  104. android:textColor="#fff" />
  105. </LinearLayout>
  106.  
  107. <View
  108. android:layout_width="match_parent"
  109. android:layout_height="1dp"
  110. android:layout_marginLeft="10dp"
  111. android:layout_marginRight="10dp"
  112. android:layout_marginTop="5dp"
  113. android:alpha="0.5"
  114. android:background="#ccc" />
  115.  
  116. <RelativeLayout
  117. android:layout_width="match_parent"
  118. android:layout_height="match_parent" >
  119.  
  120. <ImageView
  121. android:id="@+id/img_phone"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_centerVertical="true"
  125. android:layout_marginLeft="20dp"
  126. android:src="@drawable/skin_kg_navigation_local_music_normal" />
  127.  
  128. <TextView
  129. android:id="@+id/tv_muisc"
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:layout_centerVertical="true"
  133. android:layout_marginLeft="15dp"
  134. android:layout_toRightOf="@id/img_phone"
  135. android:text="本地音乐"
  136. android:textColor="#fff"
  137. android:textSize="16sp" />
  138.  
  139. <ImageView
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:layout_centerVertical="true"
  143. android:layout_marginLeft="10dp"
  144. android:layout_toRightOf="@id/tv_muisc"
  145. android:src="@drawable/skin_kg_navigation_random_normal" />
  146.  
  147. <ImageView
  148. android:id="@+id/img_back"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_alignParentRight="true"
  152. android:layout_centerVertical="true"
  153. android:layout_marginRight="25dp"
  154. android:src="@drawable/back_nor" />
  155.  
  156. <TextView
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:layout_centerVertical="true"
  160. android:layout_toLeftOf="@id/img_back"
  161. android:text="0首"
  162. android:textColor="#fff"
  163. android:textSize="16sp" />
  164. </RelativeLayout>
  165. </LinearLayout>
  166.  
  167. <LinearLayout
  168. android:layout_width="match_parent"
  169. android:layout_height="0dp"
  170. android:layout_weight="3"
  171. android:orientation="vertical" >
  172.  
  173. <LinearLayout
  174. android:layout_width="match_parent"
  175. android:layout_height="wrap_content"
  176. android:orientation="horizontal"
  177. android:padding="40dp" >
  178.  
  179. <TextView
  180. android:layout_width="0dp"
  181. android:layout_height="wrap_content"
  182. android:layout_weight="1"
  183. android:drawablePadding="10dp"
  184. android:drawableTop="@drawable/skin_kg_navigation_yueku_normal"
  185. android:gravity="center"
  186. android:text="乐库"
  187. android:textSize="16sp" />
  188.  
  189. <TextView
  190. android:layout_width="0dp"
  191. android:layout_height="wrap_content"
  192. android:layout_weight="1"
  193. android:drawablePadding="10dp"
  194. android:drawableTop="@drawable/skin_kg_navigation_channel_normal"
  195. android:gravity="center"
  196. android:text="电台"
  197. android:textSize="16sp" />
  198.  
  199. <TextView
  200. android:layout_width="0dp"
  201. android:layout_height="wrap_content"
  202. android:layout_weight="1"
  203. android:drawablePadding="10dp"
  204. android:drawableTop="@drawable/skin_kg_navigation_kuchat_normal"
  205. android:gravity="center"
  206. android:text="酷群"
  207. android:textSize="16sp" />
  208. </LinearLayout>
  209.  
  210. <View
  211. android:layout_width="match_parent"
  212. android:layout_height="1dp"
  213. android:layout_marginLeft="10dp"
  214. android:layout_marginRight="10dp"
  215. android:alpha="0.3"
  216. android:background="#ccc" />
  217.  
  218. <RelativeLayout
  219. android:layout_width="wrap_content"
  220. android:layout_height="wrap_content"
  221. android:layout_marginTop="10dp" >
  222.  
  223. <ImageView
  224. android:id="@+id/img_headset"
  225. android:layout_width="wrap_content"
  226. android:layout_height="wrap_content"
  227. android:layout_centerVertical="true"
  228. android:layout_marginLeft="15dp"
  229. android:src="@drawable/skin_kg_navigation_tool" />
  230.  
  231. <TextView
  232. android:id="@+id/tv_kit"
  233. android:layout_width="wrap_content"
  234. android:layout_height="wrap_content"
  235. android:layout_centerInParent="true"
  236. android:layout_centerVertical="true"
  237. android:layout_marginLeft="10dp"
  238. android:layout_toRightOf="@id/img_headset"
  239. android:text="音乐工具"
  240. android:textSize="14sp" />
  241.  
  242. <ImageView
  243. android:id="@+id/img_back2"
  244. android:layout_width="wrap_content"
  245. android:layout_height="wrap_content"
  246. android:layout_alignParentRight="true"
  247. android:layout_centerVertical="true"
  248. android:layout_marginRight="10dp"
  249. android:src="@drawable/b1p" />
  250.  
  251. <ImageView
  252. android:id="@+id/img_point"
  253. android:layout_width="wrap_content"
  254. android:layout_height="wrap_content"
  255. android:layout_centerInParent="true"
  256. android:layout_centerVertical="true"
  257. android:layout_marginRight="15dp"
  258. android:layout_toLeftOf="@id/img_back2"
  259. android:src="@drawable/point" />
  260.  
  261. <TextView
  262. android:layout_width="wrap_content"
  263. android:layout_height="wrap_content"
  264. android:layout_centerVertical="true"
  265. android:layout_marginRight="15dp"
  266. android:layout_toLeftOf="@id/img_point"
  267. android:text="听歌识曲"
  268. android:textSize="14sp" />
  269. </RelativeLayout>
  270.  
  271. <View
  272. android:layout_width="match_parent"
  273. android:layout_height="1dp"
  274. android:layout_marginLeft="50dp"
  275. android:layout_marginRight="10dp"
  276. android:layout_marginTop="10dp"
  277. android:alpha="0.3"
  278. android:background="#ccc" />
  279. </LinearLayout>
  280.  
  281. </LinearLayout>
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical" >
  6.  
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:background="#1E93FF"
  11. android:orientation="horizontal" >
  12.  
  13. <TextView
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:layout_margin="12dp"
  17. android:gravity="center"
  18. android:text="酷狗账号注册"
  19. android:textColor="#fff"
  20. android:textSize="22sp" />
  21. </LinearLayout>
  22.  
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:background="#E1E1E1"
  27. android:orientation="vertical" >
  28.  
  29. <LinearLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:layout_marginTop="20dp"
  33. android:background="#FFFFFF"
  34. android:orientation="horizontal"
  35. android:gravity="center_vertical"
  36. android:paddingBottom="10dp"
  37. android:paddingTop="10dp" >
  38.  
  39. <TextView
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_marginLeft="20dp"
  43. android:text="账号 "
  44. android:textSize="18sp" />
  45.  
  46. <EditText
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:hint="2-10位中文/字母/数字" />
  50. </LinearLayout>
  51.  
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:background="#FFFFFF"
  56. android:gravity="center_vertical"
  57. android:orientation="horizontal"
  58. android:paddingBottom="10dp" >
  59.  
  60. <TextView
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_marginLeft="20dp"
  64. android:text="密码 "
  65. android:textSize="18sp" />
  66.  
  67. <EditText
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:hint="6_16位字母/数字" />
  71.  
  72. <ImageView
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:src="@drawable/ec5" />
  76. </LinearLayout>
  77.  
  78. <LinearLayout
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:background="#FFFFFF"
  82. android:orientation="horizontal"
  83. android:paddingBottom="10dp" >
  84.  
  85. <LinearLayout
  86. android:layout_width="0dp"
  87. android:layout_height="wrap_content"
  88. android:layout_weight="1"
  89. android:orientation="horizontal" >
  90.  
  91. <RadioButton
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_marginLeft="25dp"
  95. android:layout_marginRight="25dp"
  96. android:gravity="center_vertical" />
  97.  
  98. <TextView
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:gravity="center_vertical"
  102. android:text="帅哥"
  103. android:textSize="18sp" />
  104. </LinearLayout>
  105.  
  106. <LinearLayout
  107. android:layout_width="0dp"
  108. android:layout_height="wrap_content"
  109. android:layout_weight="1"
  110. android:orientation="horizontal" >
  111.  
  112. <View
  113. android:layout_width="1dp"
  114. android:layout_height="30dp"
  115. android:background="#ccc" />
  116.  
  117. <RadioButton
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:layout_marginRight="25dp"
  121. android:gravity="center_vertical" />
  122.  
  123. <TextView
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:gravity="center_vertical"
  127. android:text="美女"
  128. android:textSize="18sp" />
  129. </LinearLayout>
  130. </LinearLayout>
  131.  
  132. <ImageView
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:layout_gravity="center"
  136. android:layout_marginTop="20dp"
  137. android:src="@drawable/login2" />
  138.  
  139. <TextView
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:layout_marginLeft="20dp"
  143. android:layout_marginTop="25dp"
  144. android:text="点击完成表示你阅读并同意《用户协议》"
  145. android:textColor="#C5C5C5"
  146. android:textSize="16sp" />
  147.  
  148. <TextView
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_marginLeft="20dp"
  152. android:layout_marginTop="30dp"
  153. android:text="使用手机注册"
  154. android:textColor="#30A9D1"
  155. android:textSize="16sp" />
  156. </LinearLayout>
  157.  
  158. </LinearLayout>

Android--XML页面的编写的更多相关文章

  1. Android Camera 相机程序编写

    Android Camera 相机程序编写 要自己写一个相机应用直接使用相机硬件,首先应用需要一个权限设置,在AndroidManifest.xml中加上使用设备相机的权限: <uses-per ...

  2. Android实现页面跳转、ListView及其事件

    Android实现页面跳转.ListView及其事件 开发工具:Andorid Studio 1.3 运行环境:Android 4.4 KitKat 工程内容 进入主页面后,使用ListView实现特 ...

  3. Android滚动页面位置指示器:CircleIndicator

     Android滚动页面位置指示器:CircleIndicator CircleIndicator是github上的一个开源的用于页面滚动时候的位置指示器,指示当前页面在总的页面中的位置和前后位置 ...

  4. Android欢迎页面以及引导页面

    开发环境:Windows 10 x64,Android Studio 3.0 很多APP都会在启动主界面(MainActivity)之前显示一个短暂的欢迎页面,设置微博,知乎,百度之类APP还是在欢迎 ...

  5. Android Cordova 插件开发之编写自己定义插件

    前言 本文适合Android+web的复合型人才,由于cordova本身就是混合开发,所以在Android开发的基础上,还要懂web相关技术(HTML+CSS+JS).可是也有例外,比方我.仅仅需负责 ...

  6. Android启动页面的正确打开方式 (转载)

    最近由于领导要求写一个手机APP,于是自学开始,不经意间想到使用过的手机APP在打开的时候都是会有一个启动页面,这是如何实现的呢?比较好奇,于是在网上搜到了以下这篇文章,经过个人实验的确可行,不过原文 ...

  7. 二、Android XML数据解析

    XML,可扩展标记语言.可以用来存储数据,可以看做是一个小型的数据库,SharedPreference就是使用XML文件存储数据的,SQLite底层也是一个XML文件,而在网络应用方面,通常作为信息的 ...

  8. 《!--suppress ALL --> 在Android XML 文件中的用途是什么?

    <!--suppress ALL --> 在Android XML 文件中的用途是什么? 警告一次又一次地出现在谷歌地图的 XML 文件中,但是当我使用时,所有警告都被禁用.那么压制所有评 ...

  9. Drawable实战解析:Android XML shape 标签使用详解(apk瘦身,减少内存好帮手)

    Android XML shape 标签使用详解   一个android开发者肯定懂得使用 xml 定义一个 Drawable,比如定义一个 rect 或者 circle 作为一个 View 的背景. ...

  10. Android xml 格式 随笔

    打包的时候Android xml文件会由字符格式(utf-8编码)转换为二进制格式.具体如:http://blog.csdn.net/jiangwei0910410003/article/detail ...

随机推荐

  1. PAT_A1119 Pre- and Post-order Traversals

    Source: PAT A1119 Pre- and Post-order Traversals (30 分) Description: Suppose that all the keys in a ...

  2. python的自动化测试报告

    #coding=utf-8import HTMLTestRunnerimport BeautifulReportimport unittestclass MyTest(unittest.TestCas ...

  3. android自定义dialog布局

    dialog使用系统自带的有时候不是很美观,就想要自己来设计一个dialog界面,以下就是可以设计的dialog界面: public class CustomDialog extends Dialog ...

  4. sql查询原理

    1.单表查询:根据WHERE条件过滤表中的记录,形成中间表(这个中间表对用户是不可见的):然后根据SELECT的选择列选择相应的列进行返回最终结果. 1)简单的单表查询 SELECT 字段 FROM ...

  5. SpringBoot背景

    1.SpringBoot的产生背景:随着spring日益发展,丰富的框架和组件大大简化了java项目开发过程,经过多年的实践,得到了很多人的认可,但是Spring的严重依赖XML配置文件,严重导致项目 ...

  6. mongodb集群搭建(分片+副本)

    原文地址:https://www.cnblogs.com/ityouknow/p/7344005.html 相关概念 先来看一张图: 从图中可以看到有四个组件:mongos.config server ...

  7. 44.mapping下的数据结构

    主要知识点 1.了解es核心的数据类型 2.了解es默认的mapping方式 3.查看mapping     1.核心的数据类型     string,text byte, short,integer ...

  8. ThinkPHP5.0 模型查询操作

    1.获取单个数据 //取出主键为1的数据 $user = User::get(1); echo $user->name; // 使用数组查询 $user = User::get(['name' ...

  9. 【ACM】poj_1000_A+B_201307271012

    A+B ProblemTime Limit: 1000MS  Memory Limit: 10000K Total Submissions: 296408  Accepted: 162241 Desc ...

  10. faster-rcnn代码阅读1

    毫无疑问,faster-rcnn是目标检测领域的一个里程碑式的算法.本文主要是本人阅读python版本的faster-rcnn代码的一个记录,算法的具体原理本文也会有介绍,但是为了对该算法有一个整体性 ...