Switch in Navigation drawer item with Design Support Library on Android

前端 未结 8 1897
长情又很酷
长情又很酷 2020-12-30 07:05

I need to put Switch inside item in navigation drawer. I\'m using new design support library, but I cannot find if it is posibble at all. When using

android         


        
8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 08:01

    You should be able to.

    Your navigation drawer view can be a LinearLayout, and inside that, you can include your NavigationView and another ViewGroup adding the switches.

提交回复
热议问题