From d5ce9e5df63a8bb5042ed6e1db48e3e5e676d9f5 Mon Sep 17 00:00:00 2001 From: Zaccheaus Amenya Date: Mon, 29 Aug 2022 12:04:13 +0300 Subject: [PATCH] kotlin code --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 919ab10..e31d83f 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,13 @@ In your ```activity.java``` follow the steps given below to add the custom Dialo customLottieDialog = new CustomLottieDialog(context, "LO01"); customLottieDialog.show(); ``` + Kotlin Code + ``` + val customLottieDialog: CustomLottieDialog + customLottieDialog = CustomLottieDialog(this, "LO01") + customLottieDialog.show() + ``` + - To add your own custom Lottie animation: First download Lottie JSON of your preferred animation and add the downloaded file to ``raw`` inside ``res``. ![LottiePreview](https://user-images.githubusercontent.com/72121163/135556267-52d16179-3c38-490c-9857-7d5bbbd61c3d.PNG)