更改高度导航选项卡ActionbarSherlock [英] Change height Navigation Tab ActionbarSherlock

查看:186
本文介绍了更改高度导航选项卡ActionbarSherlock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用ActionbarSherlock的NavigationTab,我在谷歌搜索改变高度选项卡,但我不能做到这一点。

I use NavigationTab of ActionbarSherlock, i search on google to change height tab, but i can't do it.

<style name="customActionBarTabStyle" parent="style/Widget.Sherlock.Light.ActionBar.TabView">
    <item  name="android:height">35dp</item>
</style>

如何解决?

推荐答案

注意:修改 actionBarSize 将同时更改标签的高度和主操作栏的高度

Note: Changing actionBarSize will change both the tabs height and the main action bar height

在你的应用程序的主旋律,添加以下属性:

In the main theme of you app, add the following property:

<item name="actionBarSize">@dimen/my_actionbar_size</item>

您还应该添加重复的主题值/ V-11 这还拥有属性:

You should also add a duplicate theme in values/v-11 that additionally has the property:

<item name="android:actionBarSize">@dimen/my_actionbar_size</item>

然后在你的梦诗,你可以声明

And then in your dimens, you can declare

<dimen name="my_actionbar_size">48dp</dimen>

这篇关于更改高度导航选项卡ActionbarSherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆