android recyclerview layoutanimation not working in stock android

594 views Asked by At

android:layoutAnimation not working in stock android phones

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/communityUnitsRV"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="16dp"
            android:layout_marginLeft="16dp"
            android:layout_marginTop="8dp"
            android:layout_marginEnd="16dp"
            android:layout_marginRight="16dp"
            android:layout_marginBottom="16dp"
            android:adapter="@{adapter}"
            android:layoutAnimation="@anim/layout_animation_from_bottom"
            app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="1.0"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/view9"
            app:layout_constraintVertical_bias="1.0"
            tools:listitem="@layout/item_community" />

In other phones its working.Tested in MI A3,Nokia 7.1 and Mi note 5 pro(It's working in this one and other two are stock android.)

0

There are 0 answers