activity_main.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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:background="@color/blue_very_light"
  6. android:orientation="vertical"
  7. tools:context="com.onion.appsbackup.activity.MainActivity" >
  8. <RelativeLayout
  9. android:id="@+id/rl_head"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:background="@drawable/bg"
  13. android:gravity="center" >
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:gravity="center_horizontal"
  18. android:orientation="vertical" >
  19. <com.onion.appsbackup.view.CircleImage
  20. android:id="@+id/ci_icon"
  21. android:layout_width="80dp"
  22. android:layout_height="80dp"
  23. android:layout_marginBottom="5dp"
  24. android:scaleType="fitXY"
  25. android:src="@drawable/cat" />
  26. <LinearLayout
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:gravity="center_vertical"
  30. android:orientation="horizontal" >
  31. <TextView
  32. android:id="@+id/tv_nickname"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:textSize="12sp" />
  36. <ImageView
  37. android:id="@+id/iv_gender"
  38. android:layout_width="10dp"
  39. android:layout_height="10dp"
  40. android:scaleType="fitXY"
  41. android:src="@drawable/male"
  42. android:visibility="gone" />
  43. </LinearLayout>
  44. </LinearLayout>
  45. </RelativeLayout>
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:gravity="center_horizontal"
  50. android:orientation="vertical" >
  51. <View
  52. android:layout_width="match_parent"
  53. android:layout_height="1px"
  54. android:background="@color/cute_green" />
  55. <LinearLayout
  56. android:id="@+id/ll_transfer"
  57. android:clickable="true"
  58. android:layout_width="match_parent"
  59. android:layout_height="40dp"
  60. android:background="@drawable/item_with_frame"
  61. android:gravity="center_vertical"
  62. android:orientation="horizontal"
  63. android:paddingLeft="10dp"
  64. android:paddingRight="10dp" >
  65. <ImageView
  66. android:layout_width="30dp"
  67. android:layout_height="30dp"
  68. android:scaleType="fitXY"
  69. android:src="@drawable/transfer" />
  70. <TextView
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_marginLeft="10dp"
  74. android:text="@string/label_transfer_apps"
  75. android:textSize="11sp" />
  76. </LinearLayout>
  77. <View
  78. android:layout_width="match_parent"
  79. android:layout_height="1px"
  80. android:background="@color/cute_green" />
  81. <LinearLayout
  82. android:id="@+id/ll_backup"
  83. android:clickable="true"
  84. android:layout_width="match_parent"
  85. android:layout_height="40dp"
  86. android:background="@drawable/item_with_frame"
  87. android:gravity="center_vertical"
  88. android:orientation="horizontal"
  89. android:paddingLeft="10dp"
  90. android:paddingRight="10dp" >
  91. <ImageView
  92. android:layout_width="30dp"
  93. android:layout_height="30dp"
  94. android:scaleType="fitXY"
  95. android:src="@drawable/backup" />
  96. <TextView
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:layout_marginLeft="10dp"
  100. android:text="@string/label_backup_apps"
  101. android:textSize="11sp" />
  102. </LinearLayout>
  103. <View
  104. android:layout_width="match_parent"
  105. android:layout_height="1px"
  106. android:background="@color/cute_green" />
  107. <LinearLayout
  108. android:id="@+id/ll_restore"
  109. android:clickable="true"
  110. android:layout_width="match_parent"
  111. android:layout_height="40dp"
  112. android:background="@drawable/item_with_frame"
  113. android:gravity="center_vertical"
  114. android:orientation="horizontal"
  115. android:paddingLeft="10dp"
  116. android:paddingRight="10dp" >
  117. <ImageView
  118. android:layout_width="30dp"
  119. android:layout_height="30dp"
  120. android:scaleType="fitXY"
  121. android:src="@drawable/restore" />
  122. <TextView
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:layout_marginLeft="10dp"
  126. android:text="@string/label_restore_apps"
  127. android:textSize="11sp" />
  128. </LinearLayout>
  129. <View
  130. android:layout_width="match_parent"
  131. android:layout_height="1px"
  132. android:background="@color/cute_green" />
  133. <LinearLayout
  134. android:id="@+id/ll_setting"
  135. android:clickable="true"
  136. android:layout_width="match_parent"
  137. android:layout_height="40dp"
  138. android:background="@drawable/item_with_frame"
  139. android:gravity="center_vertical"
  140. android:orientation="horizontal"
  141. android:paddingLeft="10dp"
  142. android:paddingRight="10dp" >
  143. <ImageView
  144. android:layout_width="30dp"
  145. android:layout_height="30dp"
  146. android:scaleType="fitXY"
  147. android:src="@drawable/setting" />
  148. <TextView
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_marginLeft="10dp"
  152. android:text="@string/label_my_setting"
  153. android:textSize="11sp" />
  154. </LinearLayout>
  155. <View
  156. android:layout_width="match_parent"
  157. android:layout_height="1px"
  158. android:background="@color/cute_green" />
  159. </LinearLayout>
  160. </LinearLayout>