Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 607f8ebc authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Improve home screen carousel

parent 4f24550e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ import android.widget.Scroller

class ImageCarouselScroller(context: Context) : Scroller(context) {

    private val scrollDuration = 2000
    private val scrollDuration = 1000

    override fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int, duration: Int) {
        super.startScroll(startX, startY, dx, dy, scrollDuration)
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ import android.support.v4.view.ViewPager

class ImageCarouselSwitcher(private var imagesCount: Int, private val imageCarousel: ViewPager) {
    private val handler = Handler()
    private val switchImageInterval = 4000L
    private val switchImageInterval = 2000L

    fun start() {
        handler.postDelayed(this::switchImage, switchImageInterval)
+2 −1
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@
    <foundation.e.apps.utils.CustomNestedScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:scrollbars="none">
        android:scrollbars="none"
        app:layout_constraintTop_toTopOf="parent">

        <LinearLayout
            android:layout_width="match_parent"
+1 −3
Original line number Diff line number Diff line
@@ -8,8 +8,6 @@
        android:id="@+id/image"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="?android:selectableItemBackground"
        android:paddingTop="@dimen/layout_padding_large"
        android:paddingBottom="@dimen/layout_padding_large" />
        android:background="?android:selectableItemBackground" />

</LinearLayout>
 No newline at end of file