开发者

Android: Tutorial on Custom View creation [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the开发者_如何学编程 help center for guidance. Closed 10 years ago.

Can anyone suggest a good tutorial about how to create custom view?


Custom View - HorizontalSlider | Hello Android

http://www.helloandroid.com/tutorials/custom-view-horizontalslider


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

After that, for general tutorials of a view that extends the android.view.View class, these seem to be good examples:

  • http://www.androidcompetencycenter.com/2009/08/creatingcustomviews/
  • http://www.skill-guru.com/blog/2011/01/20/creating-a-custom-widgets-in-android/

As for using the android.view.ViewGroup, there seems to be already some posts on the subject:

  • How to use viewGroup in android
  • custom ViewGroup example?
  • Can anyone give a good example of a Custom ViewGroup containing a Custom View with measure and layout examples? (In Java)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜