It is possible to add my own customized controls(buttons, TextView, ImageView) on the ActionBar? I don’t mean ActionMenu items or Action Views.
On below Android4 versions I used
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar);
where I could put any view I want, using title_bar.xml. But now I olso have OptionsMenu items on the title bar and I would like to add some extra customized views. Is it possible? If so, where can I define them and how can I access them from java code?
It is possible to add my own customized controls(buttons, TextView, ImageView) on the ActionBar?
Share
Use action views for stuff on the right and
setCustomView()for stuff in the left-to-middle (where the tabs and list navigation goes).They have to extend
android.view.View. So you cannot put aBooleanin there.