Reputation: 7144
I have an activity which I'm using LayoutInflater in order to add views and images in my code-behind. The problem is, I want that the new view I've created in that activity, will be added in 2 other activities. In other words, I'm using the first activity only to create the layout view, and I want to use that view in other activities.
How can I do such thing ?
Upvotes: 0
Views: 249
Reputation: 1655
Make abstract base activity class for your two activities, construct UI in onCreate method and call something like onPostCreate abstract method to make specific initialization for your two activities.
Upvotes: 1