OnClick for navigation drawer header not working

前端 未结 6 573
鱼传尺愫
鱼传尺愫 2020-12-05 07:25

I have a navigation drawer in my app which contains a header and some list items. The header has a textview which i want to make clickable but I am not able to do it.

6条回答
  •  萌比男神i
    2020-12-05 08:07

    just add this to your header layout Xml file

    android:focusable="true"
    android:focusableInTouchMode="true"
    android:clickable="true"
    

提交回复
热议问题