Coordinator layout custom layout behavior never getting called

后端 未结 2 556
醉话见心
醉话见心 2020-12-14 02:02

Firstly, I\'d like to preface this with my lack of knowledge about the coordinator layout. I\'m merely following tutorials I found online and am curious why my behavior isn\

2条回答
  •  时光说笑
    2020-12-14 02:12

    The reason why it is not working is that view with Behavior must be a direct child of CoordinatorLayout. In your case, the hierarchy is: CoordinatorLayout -> RelativeLayout -> LinearLayout (with Behavior).

提交回复
热议问题