任何人都可以提出有关如何创建自定义视图一个很好的教程?
Can anyone suggest a good tutorial about how to create custom view?
我问自己同样的问题。做一个搜索在谷歌,我发现了一些好消息。首先,你应该通过阅读由谷歌Android psented文件$ P $开始的:
I was asking myself the same question. Doing a searches on Google, I found some good info. First of all you should start by reading the documentation presented by Google Android:
http://developer.android.com/guide/topics/ui/custom-components.html在此之后,该扩展视图的一般教程 android.view.View
类,这似乎是很好的例子:
After that, for general tutorials of a view that extends the android.view.View
class, these seem to be good examples:
至于使用 android.view.ViewGroup
,似乎有已经一些关于这个问题的帖子:
As for using the android.view.ViewGroup
, there seems to be already some posts on the subject: