我们正在尝试为三星 Galaxy 平板电脑构建 Android 应用程序。我们是否有办法增加 ActionBar 的高度?我们正在使用 Android 3.1 API 12。
<style name="CustomTheme" parent="android:style/Theme">
<item name="android:actionBarSize">@dimen/action_bar_default_height</item>
</style>
<resources>
<dimen name="action_bar_default_height">55dp</dimen>
</resources>
然后在您的应用程序清单中设置应用程序的主题,如下所示:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:logo="@drawable/ic_launcher"
android:theme="@style/CustomTheme" >
...
</application>