diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-02 15:16:18 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-02 15:16:18 +0000 |
commit | e3578c59dd7cb65c3d78a1bd219d05577472a0b6 (patch) | |
tree | a7bb0b3a04035d210fd6f38c80feafc39288b41c /app/src/main/res/xml/activity_motion_test_scene.xml | |
parent | 992cf0dda12f16f19baec2f7ec6197da314a9096 (diff) | |
download | infinity-for-reddit-e3578c59dd7cb65c3d78a1bd219d05577472a0b6.tar infinity-for-reddit-e3578c59dd7cb65c3d78a1bd219d05577472a0b6.tar.gz infinity-for-reddit-e3578c59dd7cb65c3d78a1bd219d05577472a0b6.tar.bz2 infinity-for-reddit-e3578c59dd7cb65c3d78a1bd219d05577472a0b6.tar.lz infinity-for-reddit-e3578c59dd7cb65c3d78a1bd219d05577472a0b6.tar.xz infinity-for-reddit-e3578c59dd7cb65c3d78a1bd219d05577472a0b6.tar.zst infinity-for-reddit-e3578c59dd7cb65c3d78a1bd219d05577472a0b6.zip |
Save light, dark and amoled Material You themes to database. Add 'Apply Material You' option. Test MotionLayout.
Diffstat (limited to 'app/src/main/res/xml/activity_motion_test_scene.xml')
-rw-r--r-- | app/src/main/res/xml/activity_motion_test_scene.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app/src/main/res/xml/activity_motion_test_scene.xml b/app/src/main/res/xml/activity_motion_test_scene.xml new file mode 100644 index 00000000..d271b2e1 --- /dev/null +++ b/app/src/main/res/xml/activity_motion_test_scene.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<MotionScene xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:motion="http://schemas.android.com/apk/res-auto"> + + <Transition + android:id="@+id/transition_to_end" + motion:constraintSetStart="@+id/start" + motion:constraintSetEnd="@+id/end" + motion:autoTransition="animateToStart" + motion:duration="100"> + <OnSwipe + motion:touchAnchorId="@+id/button" + motion:touchAnchorSide="right" + motion:onTouchUp="autoCompleteToEnd" + motion:dragDirection="dragRight" /> + </Transition> + + <Transition + android:id="@+id/transition_to_start" + motion:constraintSetStart="@+id/end" + motion:constraintSetEnd="@+id/start" + motion:autoTransition="animateToEnd"> + </Transition> + + <ConstraintSet android:id="@+id/start"> + <Constraint + android:id="@+id/button" + android:layout_width="64dp" + android:layout_height="64dp" + motion:layout_constraintBottom_toBottomOf="parent" + motion:layout_constraintStart_toStartOf="parent" + motion:layout_constraintTop_toTopOf="parent" /> + </ConstraintSet> + + <ConstraintSet android:id="@+id/end"> + <Constraint + android:id="@+id/button" + android:layout_width="64dp" + android:layout_height="64dp" + motion:layout_constraintBottom_toBottomOf="parent" + motion:layout_constraintStart_toEndOf="parent" + motion:layout_constraintTop_toTopOf="parent"/> + </ConstraintSet> + +</MotionScene> |