I am creating an Android app and I'm struggling a bit with custom views.
I would like to have a reusable view consisting of several standard layout elements. Let them say relativelayout with some buttons in it.
How should I continue. Should I create a custom view class that extends RelativeLayout and programmatically adds these buttons? I would have thought that a little outwit?
How to do it in Android?
android custom-view
Peterdk
source share