How to create a piece of UI that can be used across multiple activities without duplicating the layout and business logic? Please provide some kind of example. Thank you.
Asked
Active
Viewed 138 times
3 Answers
1
This is relatively simple and there are a few ways to do it, but essentially you want to create a custom UI component. The Documentation describes it a few approaches here, and there are a few tutorials out there as well as SO questions:
0
In addition to the other answers, fragments can fill the role you are seeking.
CommonsWare
- 954,112
- 185
- 2,315
- 2,367