Skip to content

Instantly share code, notes, and snippets.

@wwdablu
Created December 3, 2018 21:43
Show Gist options
  • Save wwdablu/6ccb159ffa327dfd323a89e84d948529 to your computer and use it in GitHub Desktop.
Save wwdablu/6ccb159ffa327dfd323a89e84d948529 to your computer and use it in GitHub Desktop.
This is the layout of the menu item which is displayed in the lottiebottomnav
<?xml version="1.0" encoding="utf-8"?>
<layout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/menu_container"
android:background="@android:color/transparent"
android:orientation="vertical">
<com.airbnb.lottie.LottieAnimationView
android:layout_width="@dimen/menu_width"
android:layout_height="@dimen/menu_height"
android:id="@+id/lmi_menu_item"
android:layout_gravity="center"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lmi_menu_text"
android:textSize="@dimen/unselected_text_size"
android:layout_gravity="center"
tools:text="Item 1"
/>
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment