ActionBarDrawrToggleButton出现在android 3.0的顶角

时间:2015-12-04 09:42:59

标签: android android-3.0-honeycomb

我在android 3.0 API 11中使用NavigationDrawer创建了操作栏。我使用android.support.v4.widget.DrawerLayout在布局中创建了ActionBarDrawerToggle

我还指定了android.support.v4.app.ActionBarDrawerToggleActionBarDrawerToggle)按钮以在drawerLayout之间切换。

但是在模拟器(android 3.0 API 11)上运行之后,ActionBarDrawerToggle出现在左上角,甚至在操作栏的顶角也是如此。它应该在app图标之前垂直对齐。

在更高版本的模拟器中,它工作正常,垂直居中显示应有的位置。在API 11,android 3.0上运行时只有问题。

我只想使用此ActionBar,而不是支持库中提供的工具栏。

请帮助我{{1}}。

感谢。

0 个答案:

没有答案