下载此文档

Android布局--九宫格示例.docx


文档分类:办公文档 | 页数:约5页 举报非法文档有奖
1/5
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/5 下载此文档
文档列表 文档介绍
android 布局-- 九宫格的实现首先是 的布局方式如下: 1. <?xml version="" encoding="utf-8"?> 2. <!-- 主界面的布局--> 3. <RelativeLayout 4. xmlns:android="http://schemas./apk/res/android" 5. android:orientation="vertical" 6. android:layout_width="fill_parent" 7. android:layout_height="fill_parent" 8. 9. >10. <RelativeLayout 11. android:id="@+id/MainActivityrlTwo" 12. android:layout_width="fill_parent" 13. android:layout_height="45dp" 14. 15. >16. 17. </RelativeLayout> 18. 19. <GridView 20. android:id="@+id/MainActivityGrid" 21. android:layout_width="fill_parent" 22. android:layout_height="wrap_content" 23. android:numColumns="3" 24. android:columnWidth="50dp" 25. android:layout_below="@+id/MainActivityrlTwo" 26. android:layout_marginTop="5dp" 27. /> 28. 29. <RelativeLayout 30. android:id="@+id/MainActivityrlThree" 31. android:layout_width="fill_parent" 32. android:layout_height="60dp" 33. android:layout_alignParentBottom="true" 34. 35. >36. <TextView 37. android:id="@+id/tvLineBottom" 38. android:layout_width="fill_parent" 39. android:layout_height="wrap_content" 40. android:text="***@string/line_default" 41. /> 42. <Button 43. android:id="@+id/btmore_MainActivity" 44. android:layout_alignParentRight="true" 45. android:layout_alignParentBottom="true" 46. android:layout_width="wrap_content" 47. android:layout_height="wrap_content" 48. android:text="More" 49. 50. /> 51. </RelativeLayout> 52. 53. </R

Android布局--九宫格示例 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数5
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xxj16588
  • 文件大小52 KB
  • 时间2016-09-06
最近更新