Ich habe alles versucht, was hier auf allen anderen Antworten von Stackoverflow erwähnt wird, aber es funktioniert nicht. Hier ist mein Code.Tabs oben Aktionsleiste beim Aufblasen des benutzerdefinierten Layouts
actionBar = getActionBar();
actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#ffffff")));
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setCustomView(R.layout.actionbar_layout);
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
actionBar.setLogo(null);
actionBar.setDisplayShowTitleEnabled(false);
View homeIcon = findViewById(android.R.id.home);
((View) homeIcon.getParent()).setVisibility(View.GONE);
Sie meinen, Sie möchten, dass Ihre benutzerdefinierte Layout für Aktionsleiste benutzen? –
ja das ist richtig. – Mihir
Ich wette, du hast das auch versucht (http://StackOverflow.com/a/12884297/2438460)? –