【问题标题】:MotionLayout MotionHelper Fade Out GlitchMotionLayout MotionHelper 淡出故障
【发布时间】:2019-12-02 09:49:24
【问题描述】:

当试图在动作布局中淡出 TextView 时,TextView 出现故障,如 gif 所示

Activity一般遵循Android开发者在MotionLayouts and fragment transitions上提供的例子。

TextView 的位置不变,它被定义为在片段中居中。

以前有人遇到过这个故障吗?任何 cmets 将不胜感激。

【问题讨论】:

  • 错误报告应该发布在谷歌的问题跟踪器上,而不是在这里
  • @TimCastelijns 我只是想在将其报告为错误之前检查我是否做错了什么/任何解决方法
  • 请发布您的源代码,以便我们了解您缺少什么

标签: android android-constraintlayout android-motionlayout


【解决方案1】:

当您使用android:visibility="gone" 来隐藏TextViews 和MotionLayout 时,它们会缩小到左上角的锚点

【讨论】:

    猜你喜欢
    • 2011-08-29
    • 2014-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-19
    • 1970-01-01
    相关资源
    最近更新 更多