Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Created March 21, 2020 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmaxxdd/9ebd44f56825ff02289d57afeba59ef2 to your computer and use it in GitHub Desktop.
Save tmaxxdd/9ebd44f56825ff02289d57afeba59ef2 to your computer and use it in GitHub Desktop.
<com.google.android.material.card.MaterialCardView
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="100dp"
app:cardCornerRadius="0dp"
app:cardElevation="10dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
app:lottie_autoPlay="false"
app:lottie_loop="false"
app:lottie_rawRes="@raw/pencil_write" />
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment