Last active
September 21, 2018 02:32
-
-
Save thomaskioko/baa4262108944fc293afc738445b525e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<Transition | |
app:constraintSetEnd="@id/collapsed" | |
app:constraintSetStart="@id/expanded"> | |
<OnSwipe | |
app:dragDirection="dragUp" | |
app:touchAnchorId="@id/recycler_view_tweets" | |
app:touchAnchorSide="top" /> | |
</Transition> | |
<!-- Original State/ Scroll down--> | |
<ConstraintSet android:id="@+id/expanded"> | |
<Constraint | |
android:id="@id/toolbar_image" | |
android:layout_height="@dimen/dimen_header_background" | |
android:elevation="2dp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<CustomAttribute | |
app:attributeName="imageAlpha" | |
app:customIntegerValue="255" /> | |
</Constraint> | |
</ConstraintSet> | |
<!-- Modified State/ Scroll Up--> | |
<ConstraintSet android:id="@+id/collapsed"> | |
<Constraint | |
android:id="@id/toolbar_image" | |
android:layout_height="60dp" | |
android:elevation="2dp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<CustomAttribute | |
app:attributeName="imageAlpha" | |
app:customIntegerValue="0" /> | |
</Constraint> | |
</ConstraintSet> | |
</MotionScene> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment