Я дал собственную тему, различные style.xml для уровней API "7-13" и "14 и выше"ActionBar (android.support.v7) заполняет весь экран
<style name="CustomTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<!-- Setting values in the default namespace affects API levels 7-13 -->
<item name="actionBarStyle">@style/CustomTheme</item>
</style>
<style name="CustomTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<!-- Setting values in the default namespace affects API levels 7-13 -->
<item name="background">@color/medium_turquoise</item>
</style>
<style name="CustomTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<item name="actionBarSize">200dp</item>
</style>
<style name="CustomTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<item name="homeAsUpIndicator">@drawable/back_button_actionbar</item>
Я установил тему своего приложения как «@ style/CustomTheme», и в своей деятельности я установил следующее.
addView = getLayoutInflater().inflate(R.layout.actionbar, null);
getSupportActionBar().setCustomView(addView);
getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setDisplayShowTitleEnabled(false);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
Весь экран был взят на панели действий, я попытался изменить высоту, но никакой пользы. Наверное, я ошибаюсь в стиле.
Thanks
может у включить свой файл действий бар XML для большей ясности? –