I am trying to do inheritance between activities in my application.
I want to create "general activity" style for my all application.
For example, this "general activity" includes toolbar and statusbar. I want to show both in each activity in my program.
I wrote the BaseActivity layout like that:
<include layout="@layout/titlebar" />
<!-- Some control that can contain layout -->
<include layout="@layout/statusbar" />
And MainActivity that extends BaseActivity.
I want to insert in code the layout of the MainActivity to the specific space on BaseActivity.
Is it possible to do that? If yes, how can I set the layout of my inheritance activity in specific spase on this BaseActivity?
There is any control that can contain layout?