android - 当我在前一个屏幕上使用带有 MotionLayout 的 ImageViewFilter 时,AppcompatImageView 不显示 VectorDrawable
问题描述
我有 2 个屏幕(Splash 和 Home 片段)。我在两个屏幕中都使用相同的图标(VectorDrawable Image)。
在 SplashFragment 中,我使用 MotionLayout 中的 ImageFilterView 来显示该图标。(用于更改“交叉淡入淡出”属性)
在 HomeFragment 中,我使用 AppCompatImageView 再次显示该图标。
但在 HomeFragment 中,ImageView 不显示该图标(屏幕上仍有视图边界)。
我不知道为什么在上一个屏幕上使用 ImageFilterView 时未加载 VectorDrawable。
解决方案
我发现这个问题在 ConstraintLayout 版本2.1.0-beta02得到修复
感谢您阅读
推荐阅读
- flutter - Flutter - 第一个和最后一个具有圆形末端形状的按钮行
- java - 如何解决无限的readLine while
- c++ - 查找数组中所有正确和错误的字符
- delphi - 如何更改画布区域中的颜色
- python - 在 python pandas 中将列添加到数据框中
- python - 在 pandas DataFrame 中的任意位置搜索值
- lua - Lua 5.1 编译文件。是否可以修改一个或多个字节值以将相等操作从 == 更改为 ~=?
- python - How to design a command line interface (CLI) which accepts Python functions or code?
- javascript - 如何将 Vue 数据传递到 Axios Post 请求中?
- javascript - Vanilla JS left to right toggle animation