[android-developers] How to create a custom View

2010-11-24 Thread Abhishek Talwar
Hi guys I have to make a custom ToggleButton view. The purpose of that view should be that :- When the user clicks the button the background image should change thats it Please tell me how to achieve this or direct me to some tutorials for beginners. -- You received this message because you

Re: [android-developers] How to create a custom View

2010-11-24 Thread Kumar Bibek
Use a simple ImageButton, and handle the click events to change the Images for the ImageButton. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Nov 25, 2010 at 12:26 AM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Hi guys I have to make a custom ToggleButton

Re: [android-developers] How to create a custom View

2010-11-24 Thread Robin Talwar
No i dont want to do it this way. I have done this much. This time i want to learn how to create a custom view. Please help On Thu, Nov 25, 2010 at 12:28 AM, Kumar Bibek coomar@gmail.com wrote: Use a simple ImageButton, and handle the click events to change the Images for the ImageButton.

Re: [android-developers] How to create a custom View

2010-11-24 Thread Kumar Bibek
Well, the ToggleButton control basically does the same thing (sure enough). For creating custom views, you would have to either extend any of the ViewGroups/Views. You have to tell your specific requirements. Most of the time, creating custom views from scratch, ie. extending ViewGroup/View