Creating Custom Views//制作自定义的视图

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.

//无论你的视图多么漂亮,如果它不能一贯地以高框架的速率运行,用户也是不会喜欢的.学习如何避免通常的性能问题,并且怎样使用硬件加速使你的自定义图画运行的更快.

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值