Can anyone suggest a good tutorial about how to create custom view?
Asked
Active
Viewed 1.6k times
2 Answers
7
Custom View - HorizontalSlider | Hello Android
http://www.helloandroid.com/tutorials/custom-view-horizontalslider
-
5The last 2 links have nothing to do with the question?! – pjv Dec 30 '10 at 17:40
-
3looks like he just did a google search for you and didn't check the results. – pstanton Jul 07 '11 at 11:34
6
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:
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:
-
I think this better addresses the issues of creating a totally custom view versus just creating sub-views or extending another view. – Elliott Jun 22 '12 at 14:12