Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jafu888 authored and oscar-ad committed Nov 11, 2021
1 parent 9000a7e commit 9859aa1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
Expand Up @@ -82,7 +82,7 @@ public class MotionScene {
private int mLayoutDuringTransition = 0;
public static final int LAYOUT_IGNORE_REQUEST = 0;
public static final int LAYOUT_HONOR_REQUEST = 1;
public static final int LAYOUT_CALL_MEASURE = 3;
public static final int LAYOUT_CALL_MEASURE = 2;

private MotionEvent mLastTouchDown;
private boolean mIgnoreTouch = false;
Expand Down
Expand Up @@ -329,6 +329,8 @@
app:flow_maxElementsWrap="4"
app:flow_verticalGap="2dp"
app:flow_wrapMode="chain"
android:layout_marginRight="20dp"
android:layout_marginEnd="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
Expand Up @@ -4,27 +4,48 @@
xmlns:motion="http://schemas.android.com/apk/res-auto">

<Transition
motion:constraintSetEnd="@+id/end"
motion:constraintSetEnd="@+id/a"
motion:constraintSetStart="@id/start"
motion:layoutDuringTransition="honorRequest"
motion:layoutDuringTransition="callMeasure"
motion:duration="1000">
<KeyFrameSet>
</KeyFrameSet>
<OnSwipe motion:touchAnchorId="@+id/flow9" />
<OnSwipe motion:dragDirection="dragUp" />
</Transition>

<Transition
motion:constraintSetEnd="@+id/b"
motion:constraintSetStart="@id/start"
motion:layoutDuringTransition="honorRequest"
motion:pathMotionArc="startVertical"
motion:duration="1000">
<KeyFrameSet>
</KeyFrameSet>
<OnSwipe motion:dragDirection="dragDown" />
</Transition>
<ConstraintSet android:id="@+id/start">
</ConstraintSet>

<ConstraintSet android:id="@+id/end">
<ConstraintSet android:id="@+id/a">
<Constraint
motion:layout_constraintEnd_toEndOf="parent"
android:layout_width="0dp"
android:layout_height="wrap_content"
motion:layout_constraintBottom_toBottomOf="parent"

motion:layout_constraintTop_toTopOf="parent"
motion:layout_constraintStart_toStartOf="parent"
android:id="@+id/flow9" />
<ConstraintOverride android:id="@+id/button21" android:layout_width="150dp"/>
</ConstraintSet>
<ConstraintSet android:id="@+id/b">
<Constraint
motion:layout_constraintEnd_toEndOf="parent"
android:layout_width="0dp"
android:layout_height="wrap_content"
motion:layout_constraintBottom_toBottomOf="parent"

motion:layout_constraintStart_toStartOf="parent"
android:id="@+id/flow9" />
<ConstraintOverride android:id="@+id/button21" android:layout_width="150dp"/>
</ConstraintSet>
</MotionScene>

0 comments on commit 9859aa1

Please sign in to comment.