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. 沒有操作欄的導航抽屜通知圖標
- 5. 沒有操作欄的導航抽屜,android
- 6. 導航抽屜如何遮蓋操作欄?
- 7. 導航在所有活動中的抽屜和操作欄?
- 8. OnItemClickListener沒有在導航抽屜工作
- 9. 導航抽屜狀態欄
- 10. 獲取導航抽屜滑動工具欄/操作欄下方
- 11. 取出抽屜式導航欄,並要顯示操作欄主頁按鈕代替抽屜式導航
- 12. 抽屜式導航欄不動作條
- 13. 操作欄和導航抽屜 - 帶活動/片段的滑動操作欄
- 14. Android操作欄,抽屜
- 15. 操作欄,導航抽屜,從Android 2.2卡的UI支持
- 16. 吐司當前位置導航抽屜活動操作欄
- 17. Android Studio - 透明操作欄 - 導航抽屜
- 18. 設置在android中的操作欄上的抽屜導航
- 19. 導航抽屜:文字隱藏在操作欄下方?
- 20. 操作欄上的雙項時,在抽屜式導航
- 21. 將導航抽屜放在操作欄上
- 22. 帶AppCompat和普通操作欄的導航抽屜?
- 23. Android操作欄和導航抽屜新應用程序
- 24. 如何使用ViewPager和導航抽屜(左側)創建自定義操作欄
- 25. 如何在使用導航抽屜的片段時在底部導航欄上添加導航抽屜?
- 26. 導航抽屜
- 27. 如何在導航欄下方放置導航抽屜?
- 28. 導航抽屜不工作
- 29. 導航抽屜沒有開始
- 30. 關閉導航抽屜沒有動畫
可能重複:// stackoverflow.com/questions/30961326/navigation-drawer-without-actionbar-android) –