From 62d11c2590e182271d5d5b78b9d3f7b1a5f010ab Mon Sep 17 00:00:00 2001 From: Soumya Date: Sun, 2 Dec 2018 23:27:56 -0800 Subject: [PATCH] Update README.md --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8b33863..1885002 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,23 @@ # LottieBottomNav Library which allows to create a bottom navigation view allowing the usage of Lottie views. +## Declare in XML +``` + +``` +This would create the LottieBottomNav control. Using it the width and height of the menu items in selected and unselected state of the menu item can be controlled. Also as to whether the text for the menu item will be used for the unselected items can also be controlled using the property `menu_text_show_on_unselected`. + ## Creating Menu Items The LottieBottomNav contains an array of menu items. The process to create a menu item is: ``` @@ -47,9 +64,7 @@ void onAnimationCancel(int index, MenuItem menuItem); ``` It should be noted that if `autoPlay` is enabled, then it must be noted that `onMenuSelected` will call `onAnimationStart` immediately. So it is better to perform quick tasks in these callback and move heavy tasks in separate threads. - - -**Demo**: +## Demo The demo video is present inside the demo folder. The GIF version is shown below. ![Demo](https://github.com/wwdablu/LottieBottomNav/blob/master/demo/demo_1.0.0.gif)