找回密码
 立即注册
相关推荐换一批
  1. GB/T 20632.3-2022电气用钢纸 第3部分:平板钢纸
  2. QB/T 4455-2013 衣帽架
  3. QC/T 846-2011 重型平板运输车通用技术条件
  4. SN/T 3480.3-2016 进口电子电工行业成套设备检验技术要求第3部分:平板显示器制造专?
  5. HG/T 3229-2011 代替 HG/T 3229-1999 平板硫化机检测方法
  6. HG/T 2421-2011 代替 HG/T 2421-1993 V 带平板硫化机
  7. SN 0168-92 出口食品平板苗落计数
  8. DL/T 785-2001 火力发电厂中温中压管道(件)安全技术导则
  9. GB∕T 39848-2021 平板显示器色域测量方法
  10. JJF 1261.7-2013 平板电视能源效率标识计量检测规则
  11. JC/T 871-1997 维纶纤维增强水泥平板
  12. SJ/T 11348-2006 数字电视平板显示器测量方法
  13. YC/T 234.2-2007 薄平板冲切结构要素第2部分:冲槽和切边
  14. YC/T 234.1-2007 薄平板冲切结构要素第1部分:冲孔
  15. YC/T 234.3-2007 薄平板冲切结构要素第3部分:吸音胶粘接板
  16. SB/T 10457-2008 家用平板电视接收机安装和维修服务技术规范
  17. JC/T 626-2008 纤维增强低碱度水泥建筑平板
  18. GB/T 3856-2005 单向纤维增强塑料平板压缩试验方法
  19. HY/T 072-2003 卷式超滤技术 平板超滤膜
  20. JC/T 412-1991 建筑用石棉水泥平板
  21. GB/T 13694-1992 α-,β-平板标准源通用技术条件
  22. 中山大学附属小学2016-2017学年度一年级英语上学期期末学业水平测试卷
  23. 2013年新派英语一年级下册期末综合测试卷(含听力材料与参考答案)
  24. 小学二年级英语下学期期末综合复习检测卷及参考答案
我们都认识,Android上的界面展现都是通过Activity实现的,Activity实在是太常用了,我相信我们都现已十分理解了,这儿就不再赘述。可是Activity也有它的局限性,同样的界面在手机上显示或许很美观,在平板上就未必了,由于平板的屏幕十分大,手机的界面放在平板上或许会有过分被拉长、控件距离过大等状况。这个时候更好的体会效果是在Activity中嵌入小Activity,然后每个小Activity又可以具有自己的布局。因而,我们今日的主角Fragment登场了。为了让界面可以在平板上更好地展现,Android在3.0版本引入了Fragment(碎片)功能,它十分类似于Activity,可以像Activity相同包括布局。Fragment通常是嵌套在Activity中使用的,现在想象这种场景:有两个Fragment,Fragment1包括了一个ListView,每行显示一本书的标题。Fragment2包括了TextView和ImageView,来显示书的具体内容和图片。

(We all know that the interface display on Android is achieved through Activity. Activity is so common that I believe we have fully understood it now. I won't repeat it here. However, Activity also has its limitations. The same interface may be beautiful on the mobile phone, but not necessarily on the tablet. Because the screen of the tablet is very large, the interface of the mobile phone on the tablet may be excessively stretched and the distance between controls is too large. At this time, it is better to experience the effect that small activities are embedded in activities, and then each small Activity can have its own layout. Therefore, today's leading character Fragment appeared. In order to better display the interface on the tablet, Android introduced the Fragment function in version 3.0, which is very similar to Activity and can include the layout like Activity. Fragments are usually nested in activities. Now imagine this scenario: there are two fragments, Fragment1 includes a ListView, and each row displays a book title. Fragment2 includes TextView and ImageView to display the specific contents and pictures of the book.)

[下载]10083450892.rar




上一篇:Android AsyncTask完全解析
下一篇:Material Design设计语言中文版