【Android Training UI】创建自定义Views(Lesson 0 - 章节概览)
来源:互联网 发布:mysql交叉连接 编辑:程序博客网 时间:2024/05/09 03:34
发表在我的独立网站http://kesenhoo.github.io/blog/2013/06/30/android-training-ui-creating-custom-views-lesson-0/ ,欢迎访问!
Android的framework有大量的Views用来与用户进行交互并显示不同种类的数据。但是有时候你的程序有个特殊的需求,而Android内置的views组件并不能实现。这一章节会演示如何创建你自己的views,并使得它们是robust与reusable的。
Dependencies and Prerequisites
Android 2.1 (API level 7) or higher
YOU should also read
- Custom Components
- Input Events
- Property Animation
- Hardware Acceleration
- Accessibility developer guide
Try it out
Download the sample
CustomView.zip
Lesson
(1)创建一个View类
Create a class that acts like a built-in view, with custom attributes and support from the ADT layout editor.
(2)自定义Drawing
Make your view visually distinctive using the Android graphics system.
(3)使得View是可交互的
Users expect a view to react smoothly and naturally to input gestures. This lesson discusses how to use gesture detection, physics, and animation to give your user interface a professional feel.
(4)优化View
No matter how beautiful your UI is, users won’t love it if it doesn’t run at a consistently high frame rate. Learn how to avoid common performance problems, and how to use hardware acceleration to make your custom drawings run faster.
学习自:http://developer.android.com/training/custom-views/index.html,请多指教,谢谢!
转载请注明出自http://kesenhoo.github.com,谢谢配合!
- 【Android Training UI】创建自定义Views(Lesson 0 - 章节概览)
- 【Android Training UI】创建自定义Views(Lesson 2 - 自定义Drawing)
- Android Training - 创建自定义的Views(Lesson 4 - 优化Views)
- 【Android Training UI】创建自定义Views(Lesson 1 - 创建一个View类)
- 【Android Training - 03】使用Fragments建立动态的UI [ Lesson 0 - 章节概览 ]
- 【Android Training UI】创建自定义的Views(Lesson 3 - 处理View的交互性)
- 【Android Training UI】创建自定义的Views(Lesson 4 - 优化View的性能)
- Android Training - 创建自定义的Views(Lesson 2 - 自定义Drawing)
- 【Android Training - 06】分享数据内容 [Lesson 0 - 章节概览]
- 【Android Training - 01】详解Activity生命周期 [ Lesson 0 - 章节概览 ]
- 【Android Training - Connectivity】基本网络操作 [ Lesson 0 - 章节概览 ]
- 【Android Training - 04】保存数据 [ Lesson 0 - 章节概览 ]
- 【Android Training - Multimedia】捕获照片 [Lesson 0 - 章节概览]
- 【Android Training - 12】设备无线互连 [ Lesson 0 - 章节概览 ]
- Android Training - 创建自定义的Views(Lesson 1 - 创建一个View类)
- 【Android Training - Connectivity】优化下载的效率[Lesson 0 - 章节概览]
- 【Android Training - UserInfo】记住登入用户的信息[Lesson 0 - 章节概览]
- 【Android Training - 15】云同步的实现 [Lesson 0 - 章节概览]
- discuz x2.5后台总是掉线,提示输密码的处理
- XML STAX样例
- 利用PreTranslateMessage函数屏蔽按键 回车 ESC等
- 代码腐化之路
- 用Session防止表单重复提交
- 【Android Training UI】创建自定义Views(Lesson 0 - 章节概览)
- ThinkPHP验证码不能显示如何解决
- 黑马程序员——垃圾回收机制、弱引用
- 用java求吸血鬼数字
- 选择与目标
- Android源码的下载和编译
- 软件为什么这么复杂
- SQL中随机数函数rand()简介
- Excel VBA - 遍历某个文件夹中文件、文件夹及批量建立txt