主界面xml文件:

        
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/file_browse_category"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:orientation="horizontal" >
  7. <ViewFlipper
  8. android:id="@+id/viewfliper"
  9. android:layout_width="fill_parent"
  10. android:layout_height="fill_parent" >
  11. <LinearLayout
  12. android:id="@+id/category_page"
  13. android:layout_width="fill_parent"
  14. android:layout_height="fill_parent"
  15. android:orientation="vertical" >
  16. <LinearLayout
  17. android:id="@+id/category_buttons"
  18. android:layout_width="fill_parent"
  19. android:layout_height="0.0dip"
  20. android:layout_weight="1.0"
  21. android:orientation="vertical" >
  22. <LinearLayout
  23. android:layout_width="fill_parent"
  24. android:layout_height="0.0dip"
  25. android:layout_gravity="center"
  26. android:layout_weight="1.0"
  27. android:orientation="horizontal" >
  28. <LinearLayout
  29. android:id="@+id/category_music"
  30. style="@style/CategoryButtonStyle"
  31. android:background="@drawable/category_button_left"
  32. android:onClick="ItemClick" >
  33. <ImageView
  34. style="@style/CategoryButtonIconStyle"
  35. android:src="@drawable/category_icon_music" />
  36. <TextView
  37. style="@style/CategoryButtonTextStyle"
  38. android:text="音乐" />
  39. <TextView
  40. android:id="@+id/category_music_count"
  41. style="@style/CategoryButtonCountTextStyle" />
  42. </LinearLayout>
  43. <LinearLayout
  44. android:id="@+id/category_video"
  45. style="@style/CategoryButtonStyle"
  46. android:background="@drawable/category_button_middle"
  47. android:onClick="ItemClick" >
  48. <ImageView
  49. style="@style/CategoryButtonIconStyle"
  50. android:src="@drawable/category_icon_video" />
  51. <TextView
  52. style="@style/CategoryButtonTextStyle"
  53. android:text="视频" />
  54. <TextView
  55. android:id="@+id/category_video_count"
  56. style="@style/CategoryButtonCountTextStyle" />
  57. </LinearLayout>
  58. <LinearLayout
  59. android:id="@+id/category_picture"
  60. style="@style/CategoryButtonStyle"
  61. android:background="@drawable/category_button_right"
  62. android:onClick="ItemClick" >
  63. <ImageView
  64. style="@style/CategoryButtonIconStyle"
  65. android:src="@drawable/category_icon_picture" />
  66. <TextView
  67. style="@style/CategoryButtonTextStyle"
  68. android:text="图片" />
  69. <TextView
  70. android:id="@+id/category_picture_count"
  71. style="@style/CategoryButtonCountTextStyle" />
  72. </LinearLayout>
  73. </LinearLayout>
  74. <LinearLayout
  75. android:layout_width="fill_parent"
  76. android:layout_height="0.0dip"
  77. android:layout_gravity="center"
  78. android:layout_weight="1.0"
  79. android:orientation="horizontal" >
  80. <LinearLayout
  81. android:id="@+id/category_applications"
  82. style="@style/CategoryButtonStyle"
  83. android:background="@drawable/category_button_left"
  84. android:onClick="ItemClick" >
  85. <ImageView
  86. style="@style/CategoryButtonIconStyle"
  87. android:src="@drawable/category_icon_theme" />
  88. <TextView
  89. style="@style/CategoryButtonTextStyle"
  90. android:text="已安装应用" />
  91. <TextView
  92. android:id="@+id/category_app_count"
  93. style="@style/CategoryButtonCountTextStyle" />
  94. </LinearLayout>
  95. <LinearLayout
  96. android:id="@+id/category_document"
  97. style="@style/CategoryButtonStyle"
  98. android:background="@drawable/category_button_middle"
  99. android:onClick="ItemClick" >
  100. <ImageView
  101. style="@style/CategoryButtonIconStyle"
  102. android:src="@drawable/category_icon_document" />
  103. <TextView
  104. style="@style/CategoryButtonTextStyle"
  105. android:text="文档" />
  106. <TextView
  107. android:id="@+id/category_document_count"
  108. style="@style/CategoryButtonCountTextStyle" />
  109. </LinearLayout>
  110. <LinearLayout
  111. android:id="@+id/category_zip"
  112. style="@style/CategoryButtonStyle"
  113. android:background="@drawable/category_button_right"
  114. android:onClick="ItemClick" >
  115. <ImageView
  116. style="@style/CategoryButtonIconStyle"
  117. android:src="@drawable/category_icon_zip" />
  118. <TextView
  119. style="@style/CategoryButtonTextStyle"
  120. android:text="压缩包" />
  121. <TextView
  122. android:id="@+id/category_zip_count"
  123. style="@style/CategoryButtonCountTextStyle" />
  124. </LinearLayout>
  125. </LinearLayout>
  126. <LinearLayout
  127. android:layout_width="fill_parent"
  128. android:layout_height="0.0dip"
  129. android:layout_gravity="center"
  130. android:layout_weight="1.0"
  131. android:orientation="horizontal" >
  132. <LinearLayout
  133. android:id="@+id/category_apk"
  134. style="@style/CategoryButtonStyle"
  135. android:background="@drawable/category_button_left"
  136. android:onClick="ItemClick" >
  137. <ImageView
  138. style="@style/CategoryButtonIconStyle"
  139. android:src="@drawable/category_icon_apk" />
  140. <TextView
  141. style="@style/CategoryButtonTextStyle"
  142. android:text="安装包" />
  143. <TextView
  144. android:id="@+id/category_apk_count"
  145. style="@style/CategoryButtonCountTextStyle" />
  146. </LinearLayout>
  147. <LinearLayout
  148. android:id="@+id/category_other"
  149. style="@style/CategoryButtonStyle"
  150. android:background="@drawable/category_button_middle"
  151. android:onClick="ItemClick"
  152. android:visibility="gone" >
  153. <ImageView
  154. style="@style/CategoryButtonIconStyle"
  155. android:src="@drawable/category_icon_other" />
  156. <TextView
  157. style="@style/CategoryButtonTextStyle"
  158. android:text="其他" />
  159. <TextView
  160. android:id="@+id/category_other_count"
  161. style="@style/CategoryButtonCountTextStyle" />
  162. </LinearLayout>
  163. <LinearLayout
  164. android:id="@+id/category_favorite"
  165. style="@style/CategoryButtonStyle"
  166. android:background="@drawable/category_button_middle"
  167. android:onClick="ItemClick" >
  168. <ImageView
  169. style="@style/CategoryButtonIconStyle"
  170. android:src="@drawable/category_icon_favorite" />
  171. <TextView
  172. style="@style/CategoryButtonTextStyle"
  173. android:text="收藏" />
  174. <TextView
  175. android:id="@+id/category_favorite_count"
  176. style="@style/CategoryButtonCountTextStyle" />
  177. </LinearLayout>
  178. <LinearLayout
  179. android:id="@+id/category_about"
  180. style="@style/CategoryButtonStyle"
  181. android:background="@drawable/category_button_right"
  182. android:onClick="ItemClick" >
  183. <ImageView
  184. style="@style/CategoryButtonIconStyle"
  185. android:src="@drawable/about_icon" />
  186. <TextView
  187. style="@style/CategoryButtonTextStyle"
  188. android:text="关于" />
  189. <TextView
  190. android:id="@+id/category_about_count"
  191. style="@style/CategoryButtonCountTextStyle" />
  192. </LinearLayout>
  193. </LinearLayout>
  194. </LinearLayout>
  195. <LinearLayout
  196. android:layout_width="fill_parent"
  197. android:layout_height="wrap_content"
  198. android:layout_gravity="bottom"
  199. android:background="@drawable/information_bg"
  200. android:gravity="center_vertical"
  201. android:orientation="vertical"
  202. android:paddingTop="5.0dip" >
  203. <RelativeLayout
  204. android:layout_width="fill_parent"
  205. android:layout_height="wrap_content"
  206. android:layout_marginBottom="5.0dip"
  207. android:layout_marginLeft="20.0px"
  208. android:orientation="horizontal" >
  209. <ImageView
  210. android:id="@+id/sd_card_image"
  211. android:layout_width="wrap_content"
  212. android:layout_height="wrap_content"
  213. android:layout_alignParentLeft="true"
  214. android:layout_gravity="center"
  215. android:gravity="center"
  216. android:scaleType="fitCenter"
  217. android:src="@drawable/sd_card_icon" />
  218. <TextView
  219. android:id="@+id/sd_card_capacity_label"
  220. style="@style/InformationTextStyle"
  221. android:layout_marginLeft="10.0dip"
  222. android:layout_toRightOf="@+id/sd_card_image"
  223. android:text="@string/sd_card_name" />
  224. <TextView
  225. android:id="@+id/sd_card_capacity"
  226. style="@style/InformationTextStyle"
  227. android:layout_toRightOf="@+id/sd_card_capacity_label" />
  228. <TextView
  229. android:id="@+id/sd_card_available_label"
  230. style="@style/InformationTextStyle"
  231. android:layout_marginLeft="10.0dip"
  232. android:layout_toRightOf="@+id/sd_card_capacity"
  233. android:text="@string/sd_card_available" />
  234. <TextView
  235. android:id="@+id/sd_card_available"
  236. style="@style/InformationTextStyle"
  237. android:layout_toRightOf="@+id/sd_card_available_label" />
  238. <ProgressBar
  239. android:id="@+id/scan_progressbar"
  240. style="@style/AnimProgressStyle"
  241. android:layout_width="wrap_content"
  242. android:layout_height="wrap_content"
  243. android:layout_alignParentRight="true"
  244. android:layout_marginRight="10.0dip"
  245. android:visibility="gone" />
  246. </RelativeLayout>
  247. </LinearLayout>
  248. </LinearLayout>
  249. <LinearLayout
  250. android:layout_width="fill_parent"
  251. android:layout_height="fill_parent" >
  252. <ListView
  253. android:id="@+id/super_list"
  254. style="@style/Widget.ListView.NoDivider"
  255. android:layout_width="fill_parent"
  256. android:layout_height="fill_parent"
  257. android:background="@drawable/list_item_background_normal"
  258. android:fastScrollEnabled="true"
  259. android:footerDividersEnabled="true"
  260. android:headerDividersEnabled="true"
  261. android:visibility="visible" />
  262. </LinearLayout>
  263. </ViewFlipper>
  264. </LinearLayout>

更多相关文章

  1. Android(安卓)ubuntu 开发环境安装
  2. Ubuntu10.04安装JDK5
  3. 安装 ADT 插件
  4. Android(安卓)DOC文档分析——ContentProvider
  5. Android(安卓)UI界面之TableLayout
  6. viewpager+fragment+radiogroup横向滑动切换界面
  7. android 天气预报 界面
  8. OpenCV在Windows、Linux、Android、iOS上的安装
  9. Dalvik 文档 【记录】

随机推荐

  1. 关于 golang 的接口介绍
  2. 教你使用golang实现redis服务器
  3. 分享Go命名规范小记
  4. go语言grpc环境搭建的方法详解
  5. 关于Golang GC 垃圾回收机制的详解
  6. 关于 Golang 协程调度
  7. golang实现二倍均值算法和抢红包的方法
  8. Go语言中如何使用模板引擎
  9. Golang如何实现简单的API网关
  10. 了解Go 扁平化项目结构