首页 > 解决方案 > MotionLayout:重新启动 onCreate() 时布局中包含的视图不可见

问题描述

首次启动屏幕后不显示包含的视图。

转载视频: https ://drive.google.com/open?id=1EzNe5kXHZ_91kycYsZ8RlcEDZwX3EEyv

主要布局: https ://gist.github.com/albka1986/9028905ece74d2e58d5fca7afd796732

场景: https ://gist.github.com/albka1986/f17a538980aa02001094df99eec775ba

版本:'androidx.constraintlayout:constraintlayout:2.0.0-alpha5'

标签: androidandroid-motionlayout

解决方案


该错误已在“androidx.constraintlayout:constraintlayout:2.0.0-beta1”中修复。

现在我不能再复制它了。


推荐阅读