adding layout animations to some other views too

This commit is contained in:
tibbi 2021-02-27 23:32:49 +01:00
parent e56df23f93
commit c3ff917e68
6 changed files with 6 additions and 0 deletions

View file

@ -78,6 +78,7 @@ class AlbumsActivity : SimpleActivity() {
albums_list.adapter = this
}
albums_list.scheduleLayoutAnimation()
albums_fastscroller.setViews(albums_list) {
val item = adapter.items.getOrNull(it)
if (item is Track) {

View file

@ -63,6 +63,7 @@ class QueueActivity : SimpleActivity() {
queue_list.adapter = this
}
queue_list.scheduleLayoutAnimation()
queue_fastscroller.setViews(queue_list) {
val track = queueAdapter.items.getOrNull(it)
queue_fastscroller.updateBubbleText(track?.title ?: "")

View file

@ -90,6 +90,7 @@ class TracksActivity : SimpleActivity() {
}
tracks_list.adapter = adapter
tracks_list.scheduleLayoutAnimation()
tracks_fastscroller.setViews(tracks_list) {
val listItem = when (adapter) {

View file

@ -11,6 +11,7 @@
android:layout_height="match_parent"
android:layout_above="@+id/current_track_bar"
android:clipToPadding="false"
android:layoutAnimation="@anim/layout_animation"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
<com.simplemobiletools.commons.views.FastScroller

View file

@ -10,6 +10,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:layoutAnimation="@anim/layout_animation"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
<com.simplemobiletools.commons.views.FastScroller

View file

@ -11,6 +11,7 @@
android:layout_height="match_parent"
android:layout_above="@+id/current_track_bar"
android:clipToPadding="false"
android:layoutAnimation="@anim/layout_animation"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
<com.simplemobiletools.commons.views.FastScroller