Skip to content

Instantly share code, notes, and snippets.

@rodrigomartind
Created June 16, 2020 16:14
Show Gist options
  • Save rodrigomartind/1dc0b4fd5e58f8052d8047953acddc42 to your computer and use it in GitHub Desktop.
Save rodrigomartind/1dc0b4fd5e58f8052d8047953acddc42 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:showPaths="true"
android:id="@+id/motionLayout"
app:layoutDescription="@xml/tinder_scene6"
tools:context=".scenes.TinderScene5Activity">
...
<TextView
android:id="@+id/detailButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="More detail"
android:layout_marginBottom="24dp"
android:textColor="@android:color/white"
android:elevation="1dp"
app:layout_constraintBottom_toBottomOf="@id/cardOne"
app:layout_constraintEnd_toEndOf="@id/cardOne"
app:layout_constraintStart_toStartOf="@id/cardOne" />
</androidx.constraintlayout.motion.widget.MotionLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment