Problem
I Have a custom activity that load graphics from an XML file, where i have a lot of Buttons, Images and Text.
My Implementation Planning
For implementation i want to use android classes like ImageButton, TextView and ImageView.
I have thinking to use a List<View> for looping all View objects and inflating into a RelativeLayout.
My doubt
Is better a List<View> or List<ImageButton>, List<TextView> and List<ImageView>?
Method implementation in ImageButton or ImageView (Like onClick or some other event), is lost when i convert it to a View object?
Example of code i planned:
ImageButton imageButton = new ImageButton(getContext());
//Implementation of methods and events...
List<View> list = new ArrayList<View>;
list.add(imageButton);