Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在线性布局上,android:animateLayoutChanges=";“真的”;因此,相同布局的动画设置会发生变化,而与此相关的其他布局则不会进行动画设置_Android_Android Layout_Animation_Android Animation_Android Linearlayout - Fatal编程技术网

在线性布局上,android:animateLayoutChanges=";“真的”;因此,相同布局的动画设置会发生变化,而与此相关的其他布局则不会进行动画设置

在线性布局上,android:animateLayoutChanges=";“真的”;因此,相同布局的动画设置会发生变化,而与此相关的其他布局则不会进行动画设置,android,android-layout,animation,android-animation,android-linearlayout,Android,Android Layout,Animation,Android Animation,Android Linearlayout,我有一个相对布局和一个线性布局在里面,还有一些其他的布局我正在使用 android:animateLayoutChanges=“true” 我动态地删除并在其中添加视图。因此,线性布局本身会上下设置动画,但与线性布局相关的其他视图不会设置动画。 这里附上一些代码,这将使更多的理解 <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:animat

我有一个相对布局和一个线性布局在里面,还有一些其他的布局我正在使用

android:animateLayoutChanges=“true”

我动态地删除并在其中添加视图。因此,线性布局本身会上下设置动画,但与线性布局相关的其他视图不会设置动画。
这里附上一些代码,这将使更多的理解

<RelativeLayout
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:animateLayoutChanges="true">
        <LinearLayout id="@+id/linear_layout"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginBottom="14dp"
                    android:animateLayoutChanges="true"
                    android:background="#1AFFFFFF"
                    android:orientation="vertical"
                    android:paddingTop="12dp">

        </LinearLayout>
       <RelativeLayout id="@+id/bottom_layout"
               android:below="id/linear_layout">
       </RelativeLayout>

所以,我在线性布局中添加项目,然后底部布局突然改变其位置,在移除视图时不会向下滑动。 当我移除视图时,底部布局与线性布局重叠,然后线性布局向上滑动。 .. 如果有人对此有任何解决方案,请写信。多谢各位