14

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

Pria
  • 2,743
  • 4
  • 27
  • 30

2 Answers2

7

Custom View - HorizontalSlider | Hello Android

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

Freewind
  • 193,756
  • 157
  • 432
  • 708
ratty
  • 13,216
  • 29
  • 75
  • 108
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:

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

Community
  • 1
  • 1
gfrigon
  • 2,237
  • 2
  • 23
  • 32
  • 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