Same Navigation Drawer in different Activities

前端 未结 12 1458
执念已碎
执念已碎 2020-11-22 04:24

I made a working navigation drawer like it\'s shown in the tutorial on the developer.android.com website. But now, I want to use one Navigation Drawer, i created in the Navi

12条回答
  •  失恋的感觉
    2020-11-22 05:16

    update this code in baseactivity. and dont forget to include drawer_list_header in your activity xml.

    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
    setContentView(R.layout.drawer_list_header);
    

    and dont use request() in your activity. but still the drawer is not visible on clicking image..and by dragging it will visible without list items. i tried a lot but no success. need some workouts for this...

提交回复
热议问题