我在android 3.0 API 11中使用NavigationDrawer
创建了操作栏。我使用android.support.v4.widget.DrawerLayout
在布局中创建了ActionBarDrawerToggle
。
我还指定了android.support.v4.app.ActionBarDrawerToggle
(ActionBarDrawerToggle
)按钮以在drawerLayout之间切换。
但是在模拟器(android 3.0 API 11)上运行之后,ActionBarDrawerToggle
出现在左上角,甚至在操作栏的顶角也是如此。它应该在app图标之前垂直对齐。
在更高版本的模拟器中,它工作正常,垂直居中显示应有的位置。在API 11,android 3.0上运行时只有问题。
我只想使用此ActionBar,而不是支持库中提供的工具栏。
请帮助我{{1}}。
感谢。