java - Class with repeated buttons android -


i have several classes same buttons. how can combine them 1 class rather writing them in each class? thanks

make bean class buttons , use them using getter , setters throughout app. create buttons dynamically

http://theopentutorials.com/tutorials/android/listview/android-custom-listview-with-image-and-text-using-baseadapter/ 

this link implement such things.. may solve ur problem :)


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -