Creating Custom Views//制作自定义的视图
The Android framework has a large set of View
classes for interacting with the user and displaying various types of data. But sometimes your app has unique needs that aren’t covered by the built-in views. This class shows you how to create your own views that are robust and reusable.
//安卓框架又大量的视图类用于与用户互动和展现各种各样的数据。但是有时候你的应用的独特的需求不是内置的视图可以满足的.这个类将向你展示如何制作出强健的可以复用的你自己的视图。
Lessons
Creating a View Class
Create a class that acts like a built-in view, with custom attributes and support from the ADT layout editor.
//建立像内置类一样的视图,有定制的属性并且支持ADT的布局编辑器。
Custom Drawing//定制画图
Make your view visually distinctive using the Android graphics system.
//使用安卓的画图系统建立你自己的视觉上有特色的视图。
Making the View Interactive//使视图可以互动
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.
//用户希望视图能反应平滑并且自然地进入到手势。这一课讨论如何使用手势探测,物理,和动画给你的用户一个专业的感觉。
Optimizing the 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.
//无论你的视图多么漂亮,如果它不能一贯地以高框架的速率运行,用户也是不会喜欢的.学习如何避免通常的性能问题,并且怎样使用硬件加速使你的自定义图画运行的更快.