小编Mor*_*sko的帖子

转换时EditText提示可见

在我的应用程序中,我正在使用Android Activity Slide过渡.我遵循了一个很好的教程,一切都按预期工作,除了我的提示EditText,其中包含InputTextLayout:

<android.support.design.widget.TextInputLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="@dimen/activity_vertical_margin">

    <EditText
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:hint="Your name"/>
</android.support.design.widget.TextInputLayout>
Run Code Online (Sandbox Code Playgroud)

所有组件都很好地动画,但提示只是在动画开始之前弹出并保持在最终位置.我是否必须添加一些额外的代码来告诉框架为该提示设置动画?

根据Android开发人员文档,它应该工作(或者至少它不是不受支持的).

我正在使用支持设计库的22.2版.

如果有人能指出我正确的方向,那就太棒了.

android android-transitions android-textinputlayout

13
推荐指数
2
解决办法
827
查看次数