0
A
回答
0
定义你这样的XML和你做
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp" // static height for view or keep it dimen.xml
android:background="#21ef70"
android:gravity="bottom"
android:orientation="horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click"
android:id="@+id/button2" />
</LinearLayout>
</LinearLayout>
<!-- Listview to display navigation menu -->
<ListView
android:id="@+id/list_slidermenu"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:layout_marginTop="100dp" // same margin as of layout
android:choiceMode="singleChoice"
android:dividerHeight="1dp" />
</android.support.v4.widget.DrawerLayout>
+0
如果你想要它在绿色布局下,只需填充到列表和透明背景。 –
+0
@StephaneMathis嘿我已经从顶部给列表视图保证金? –
+0
看到这个链接http://stackoverflow.com/questions/30961326/navigation-drawer-without-actionbar-android/30961388?noredirect=1#comment49955090_30961388 –
0
要隐藏动作条,简单地做到这一点:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportActionBar().hide();
}
[抽屉式导航无动作条,机器人(HTTP的
相关问题
- 1. Android导航抽屉没有操作栏
- 2. 与抽屉式导航操作栏
- 3. 导航抽屉盖操作栏
- 4. 没有操作栏的导航抽屉,android
- 5. 导航抽屉如何遮盖操作栏?
- 6. 导航在所有活动中的抽屉和操作栏?
- 7. 导航抽屉状态栏
- 8. 获取导航抽屉滑动工具栏/操作栏下方
- 9. 设置在android中的操作栏上的抽屉导航
- 10. 操作栏,导航抽屉,从Android 2.2卡的UI支持
- 11. 如何在使用导航抽屉的片段时在底部导航栏上添加导航抽屉?
- 12. 如何在导航栏下方放置导航抽屉?
- 13. 导航抽屉不工作
- 14. 导航抽屉没有开始
- 15. 抽屉式导航栏菜单列表项没有更新programmaticaly
- 16. 安卓导航抽屉没有显示标题栏在kitkat
- 17. 制作具有ExpandableListView的导航抽屉
- 18. Android的抽屉式导航栏 - 多段
- 19. 抽屉式导航栏,并在Android的
- 20. 抽屉式导航栏图标颜色
- 21. 抽屉式导航栏刷新
- 22. Android抽屉导航工具栏丢失
- 23. 抽屉式导航栏透明
- 24. 如何创建具有“抽屉外观”行为的导航栏
- 25. Android导航抽屉?
- 26. 如何使片段覆盖工具栏中的导航抽屉
- 27. 展开导航抽屉的动作栏/工具栏
- 28. 添加导航抽屉通过替换在导航栏中的导航栏
- 29. 导航抽屉与导航抽屉片段
- 30. 将导航栏与导航抽屉一起移动
可能重复:// stackoverflow.com/questions/30961326/navigation-drawer-without-actionbar-android) –