views:

44

answers:

1

Hi, all!

I would like to create button which contains text on left and checkbox on right (or any other component). How can I do that?

As I found I can make my own View extends Button, but how should I implement onDraw method if so?

Thanks

+3  A: 

There's an easier solution, look at this post: http://stackoverflow.com/questions/1532876/android-combining-text-image-on-a-button-or-imagebutton

cristis
Thanks. It helped. I have solve the issue using setCompoundDrawableWithInstrictsicBounds(int, int , int , int)
davs