So im making an app that creates events by filling in a form then you can share it.
The Question is that my app displays 9 buttons and each button corresponds to different categories of events. I want each layout of the new activity to have in top a banner with the name categorie of the event.. so should I do a different XML layout for each categorie? any ideas? thanks
An XML layout is usually for a single screen or for a repeating element on a screen (e.g. for a list item). If your screens have some parts that can be reused (e.g. many screens with Ok/Cancel buttons at the bottom or some title bar on all the screens ) then you may want to have those repeating parts as seperate XML files and include them in each screen.
Other than that I can’t say anything because can’t understand the question fully.
Perhaps you shall just create your layout(s) first – a separate layout for each screen – and then optimize.