android:visibility changes to children of MotionLayout

前端 未结 5 1810
灰色年华
灰色年华 2020-12-05 10:18

I must be missing something with android:visibility changes within a motion layout. Here’s a simplified version of my layout.


 

        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 10:47

    The other option depending on your use case is to make sure the view you want to control the visibility of isn't a direct descendant of the MotionLayout. Place it in a container view and you'll be able to set the visibility as normal

提交回复
热议问题