Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Created Mar 21, 2020
Embed
What would you like to do?
<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