Skip to content
Snippets Groups Projects
Unverified Commit 000b9e3b authored by Ralf Gehrer's avatar Ralf Gehrer Committed by GitHub
Browse files

Add snapping scroll behavior to the statistic cards (EXPOSUREAPP-4520) #2094

parent 3a9996d1
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.PagerSnapHelper
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.databinding.HomeStatisticsScrollcontainerBinding
import de.rki.coronawarnapp.statistics.StatisticsData
......@@ -28,6 +29,7 @@ class StatisticsHomeCard(
itemAnimator = DefaultItemAnimator()
addItemDecoration(StatisticsCardPaddingDecorator(startPadding = R.dimen.spacing_small))
}
PagerSnapHelper().attachToRecyclerView(statisticsRecyclerview)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment