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 class is too complex, instead you should be extending one of the specialized View classes like Button, TextView, ImageView etc. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Nov 25, 2010 at 12:31 AM, Robin Talwar <[email protected] > wrote: > 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 <[email protected]>wrote: > >> 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 < >> [email protected]> wrote: >> >>> 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 are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<android-developers%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<android-developers%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

