Android Tablet App - ActionBar

We are trying to create an Android app for Samsung Galaxy tablets. Is there a way to increase the height of the ActionBar? We are using Android 3.1 API 12.

+5
source share
2 answers

You can apply a special theme to your application.

Create styles.xml in the res / values ​​/ directory and add something like this:

<style name="CustomTheme" parent="android:style/Theme">
    <item name="android:actionBarSize">@dimen/action_bar_default_height</item>
</style>

Next, create a dimension.xml in the res / values ​​/ directory and add something like this:

<resources>
    <dimen name="action_bar_default_height">55dp</dimen>
</resources>

Then in the application manifest, set the application theme as follows:

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:logo="@drawable/ic_launcher"
    android:theme="@style/CustomTheme" >
...
</application>
+6
source

You will need to create a custom action bar.

Here is a good tutorial

Create a custom action bar

Also here is a good example from the dev site.

Android action bar

0

All Articles