一、在android平台,view是UI的基本单元。UI由各种格样的android.view.View的子类组成的。
二、view的子类一般称为widgit,例如按钮、输出框。而viewgroup的子集一般称为layout。
三、view是一个数据容器。一方面,它存储了布局、内容、方型显视区域等信息,另一方面,它提供了画图、响应事件等与用户交互的功能。
四、view hierarchy:一个Activity中,一般包含一稞由viewgroup及view组成的树。在activity初始化时,必需调用setContentView()把树的根节点传入到activity中。
五、layout:android主要采用xml处理UI布局。xml节点标签与view的子类名称对应。另外,你还可以用addView()方法实现动态布局。
六、widget:android提供了丰富的基本组件,放在android.widget包中。你也可以继承其中的widget类,实现自定义的widget。
七、ui event:当你需要监听某元素的事件时,你先要实现一个对应的View.OnXXXListener接口,然后调用元素的setOnXXXLintener方法传入实现类。
八、menu:android平台有两种menu。一种为contextmenu另一种为optionmenu。其中optionmenu就是点击手机上的menu菜单时弹出的菜单。menu也是由一组树型结构的view组成的UI,但你不需要编写布局及元素,你只需要重写onCreateXXXMenu方法即可。
九、styles and themes:style是应用到单独元素上的一组样式属性。theme是应用到整个应用的一组样式属性。android提供了默认的style和theme实现,另外你也可以扩展实现自已的style和theme。
分享到:
相关推荐
[Wrox] SharePoint 2013 Branding and User Interface Design (英文版) [Wrox] SharePoint 2013 Branding and User Interface Design (E-Book) ☆ 图书概要:☆ If you are planning, designing, and launching ...
Building a compelling user-interface that people understand and enjoy is vital for the survival of a new application in an environment where look and feel may be the only thing between a user ...
User Interface Design for Programmers
UIKit User Interface Catalog.pdf
ZIGBEE GATEWAY CONTROL BRIDGE读写属性,主要是NXP工具Zigbee Gateway User Interface操作说明
SharePoint 2010 Branding and User Interface Design.pdf
Zigbee Gateway User Interface操作说明.rar
此文档为MIT的 用户界面设计和实现(User Interface Design & Implementation)课程的官方讲义笔记,系统的介绍了用户界面设计的相关知识,并且其中结合多种例子进行分析,内容丰富且易于理解。
UE4_UE5ArchViz室内User Interface 3 4.26 - 4.27 完整的UE室内案例,供设计学习使用。
iOS 7 sets a new standard for user interface design excellence and offers many opportunities for crafting immersive, delightful, and memorable user experiences. Discover how layering, tinting, Text ...
Android User Interface Design Implementing Material Design for Developers(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Android User Interface Design Implementing Material Design for Developers(2nd) 英文mobi 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Simulink Graphical User Interface_R2020b.pdf
18 The Fundamentals of User Interface (UI) Design for Mobile
Do you know Joel? Check this book out and you will know something useful about UI design.
高清彩版 Android User Interface Design Implementing Material Design for Developers(2nd)
2015年最新SAP用户界面技术路线图(sap user interface road map 2015.11)
the essential guide to user interface design:an introduction to gui design principles and techniques
Building a compelling user-interface that people understand and enjoy is vital for the survival of a new application in an environment where look and feel may be the only thing between a user ...
Building a compelling user-interface that people understand and enjoy is vital for the survival of a new application in an environment where look and feel may be the only thing between a user ...