DrawerLayout - Exception dispatching input event

后端 未结 5 1528
悲&欢浪女
悲&欢浪女 2020-12-14 23:14

I recently started using the DrawerLayout in a new project about a week ago and it\'s all working fine. Apart from the odd times when swiping it in and out with my finger it

5条回答
  •  渐次进展
    2020-12-15 00:00

    I have also got this error message but at first I couldn't find out what caused it. After doing some tests I actually found out that removing all margins on the View (in your example the fragment) seems to remove the problem.

    So in your case it would be:

    
    

    and you can set margins on all the views inside this fragment instead (but I haven't tested it). Hope it helps someone. It seems that this problem is not so common.

提交回复
热议问题