是否可以增加ActionBarDrawerToggle(抽屉菜单)的大小? [英] Is possible to increase the size of ActionBarDrawerToggle (Drawer menu)?
问题描述
我知道如何通过使用drawerImageRes
在操作栏上显示抽屉图标.
And I know how to show the icon of drawer on Action Bar by using drawerImageRes
in this.
public ActionBarDrawerToggle(活动活动,DrawerLayout 抽屉式布局,int,drawerImageRes,int,openDrawerContentDescRes,int closeDrawerContentDescRes)
public ActionBarDrawerToggle (Activity activity, DrawerLayout drawerLayout, int drawerImageRes, int openDrawerContentDescRes, int closeDrawerContentDescRes)
托管抽屉抽屉布局的活动
The Activity hosting the drawer drawerLayout
链接到给定Activity的ActionBar的DrawerLayout
The DrawerLayout to link to the given Activity's ActionBar
drawerImageRes用作抽屉指示器的Drawable资源
drawerImageRes A Drawable resource to use as the drawer indicator
openDrawerContentDescRes一个String资源,用于描述可访问性的打开抽屉"操作
openDrawerContentDescRes A String resource to describe the "open drawer" action for accessibility
closeDrawerContentDescRes一个String资源,用于描述可访问性的关闭抽屉"操作
closeDrawerContentDescRes A String resource to describe the "close drawer" action for accessibility
但是the icon looks like so small
所以我想知道Is possible to increase the Drawer icon size?
人们请我帮忙
谢谢
推荐答案
我找到了答案,我首先需要对Action Bar进行研究.
I found the answer, I need research about Action Bar first.
添加此内容:
<style name="Theme.white_style" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarSize">64dp</item>
<item name="actionBarSize">64dp</item>
</style>
成功了!
p/s:根据 Iconography ,定义与操作栏图标规格相符的高度,即32 x 32 dp.
p/s : According to Iconography, define height matched the specification for the action bar icons, which is 32 x 32 dp.
mdpi-32 dp = 32 px
mdpi - 32 dp = 32 px
hdpi-32 dp * 1.5 = 48 px
hdpi - 32 dp * 1.5 = 48 px
xxhdpi-32 dp * 2 = 64 px
xxhdpi - 32 dp * 2 = 64 px
这篇关于是否可以增加ActionBarDrawerToggle(抽屉菜单)的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!