Snappier clock carousel
1. Change carousel scene config to make the carousel snappier
2. Make sure carousel support RTL
Test: see bug
Bug: 282154684
Bug: 280303764
Change-Id: Ie5412411ac9104b7bd0865b324ba386792b06073
diff --git a/res/xml/carousel_scene.xml b/res/xml/carousel_scene.xml
index 140d0f2..aae3d39 100644
--- a/res/xml/carousel_scene.xml
+++ b/res/xml/carousel_scene.xml
@@ -21,20 +21,25 @@
<Transition
motion:constraintSetStart="@id/start"
motion:constraintSetEnd="@+id/next"
- motion:duration="1000"
+ motion:duration="200"
android:id="@+id/forward">
<OnSwipe
- motion:dragDirection="dragLeft"
- motion:touchAnchorSide="left" />
+ motion:dragDirection="dragStart"
+ motion:touchAnchorSide="start"
+ motion:maxVelocity="10"
+ motion:maxAcceleration="100"/>
</Transition>
<Transition
motion:constraintSetStart="@+id/start"
motion:constraintSetEnd="@+id/previous"
+ motion:duration="200"
android:id="@+id/backward">
<OnSwipe
- motion:dragDirection="dragRight"
- motion:touchAnchorSide="right" />
+ motion:dragDirection="dragEnd"
+ motion:touchAnchorSide="end"
+ motion:maxVelocity="10"
+ motion:maxAcceleration="100" />
</Transition>
<ConstraintSet android:id="@+id/previous">