I am writing an app in which I have mutiple screens which I want to adhere to a certain theme. For example: all screens should have the same background, all screens should have
There is no layout inheritance but you can create this bar layout in a separate file and use include to include it in the layouts that you want to have the bar.
Some of the other stuff could also be done with styles. Create a style for different elements and then add the style to the element in the layouts.
To do inheritance you can create a layout that you can include in other layouts. Then in a BaseActivity you can modify views, add event listeners, etc for the included layout. Just make sure in your onCreate
to call setContentView()
before you call super.onCreate().