animate the recyclerview item appearing

This commit is contained in:
tibbi 2021-03-05 11:57:51 +01:00
parent f68af307bb
commit 7e2c26d629
3 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.34.9'
implementation 'com.simplemobiletools:commons:5.34.10'
implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6'
implementation 'com.alexvasilkov:gesture-views:2.5.2'

View File

@ -190,6 +190,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
items_list.adapter = this
}
items_list.scheduleLayoutAnimation()
items_fastscroller.setViews(items_list, items_swipe_refresh) {
val listItem = getRecyclerAdapter()?.listItems?.getOrNull(it)
items_fastscroller.updateBubbleText(listItem?.getBubbleText(context, storedDateFormat, storedTimeFormat) ?: "")

View File

@ -57,6 +57,7 @@
android:layout_height="match_parent"
android:layout_below="@+id/breadcrumbs"
android:clipToPadding="false"
android:layoutAnimation="@anim/layout_animation"
android:scrollbars="none"
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager" />