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) –