Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rodrigomartind/9720546adc5efa376536ff8f8e3e81a4 to your computer and use it in GitHub Desktop.
Save rodrigomartind/9720546adc5efa376536ff8f8e3e81a4 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:motionDebug="SHOW_PATH"
app:layoutDescription="@xml/activity_circular_cards_scene1"
tools:context=".circularcards.scenes.CircularCardsScene1Activity">
<View
android:id="@+id/guide"
android:layout_width="1dp"
android:layout_height="1dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/cardCenter"
android:layout_width="318dp"
android:layout_height="202dp"
app:cardCornerRadius="8dp"
app:cardBackgroundColor="@color/colorPrimaryDark"
app:layout_constraintCircle="@+id/guide"
app:layout_constraintCircleAngle="0"
app:layout_constraintCircleRadius="190dp" />
</androidx.constraintlayout.motion.widget.MotionLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment