Skip to content

Instantly share code, notes, and snippets.

@PiotrPrus
Last active January 4, 2020 19:49
Show Gist options
  • Save PiotrPrus/f3c093dae9d829190be4d9696bbe8e9e to your computer and use it in GitHub Desktop.
Save PiotrPrus/f3c093dae9d829190be4d9696bbe8e9e to your computer and use it in GitHub Desktop.
This file describes initial state for cardview in recyclerview
<?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">
<ConstraintSet android:id="@+id/rest">
<Constraint
android:id="@+id/cardView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
app:cardBackgroundColor="@color/colorBlue"
app:cardCornerRadius="10dp"
app:layout_constraintHeight_percent="0.9"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_percent="0.9" />
</ConstraintSet>
</MotionScene>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment