Ja, Sie können eine benutzerdefinierte ActionBar aufblasen, wenn Sie benötigen.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) getActionBar()
.getThemedContext().getSystemService(LAYOUT_INFLATER_SERVICE);
View customActionBarView = inflater.inflate(R.layout.actionbar_custom, null);
ActionBar actionBar = getActionBar();
actionBar.setDisplayOptions(
ActionBar.DISPLAY_SHOW_CUSTOM,
ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME
| ActionBar.DISPLAY_SHOW_TITLE);
actionBar.setCustomView(customActionBarView,
new ActionBar.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
setContentView(R.layout.activity_main);
}
Wo actionbar_custom.xml Ihr Layout Ressource, in der Regel Dir ein Linearlayout mit dem, was Komponenten sein würde.
Bitte beachten Sie, dass in einer Android-App keine IOS-Stil-Schaltflächen verwendet werden. Benutzer neigen dazu, es nicht zu mögen. – Kuffs