{"repo":"Aditya94A/Morphing-Material-Dialogs","free":true,"listed":false,"github":"https://github.com/Aditya94A/Morphing-Material-Dialogs","clone":"git clone https://github.com/Aditya94A/Morphing-Material-Dialogs.git","description":"Material dialog :heart: morphing animation. An android kotlin UI library for building beautiful animations for converting a floating action button into a material dialog.","language":"Kotlin","stars":900,"topics":["android","android-application","android-app","android-ui","android-sdk","material-design"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Morphing Material Dialogs A library for fab-to-dialog morphing (as in Nick Butcher's Plaid) with Aidan Follestad's Material Dialogs. Table of Contents 1. Setup Instructions 2. Usage Instructions 3. Customization 4. Misc Setup Instructions Add the following to your root (project) level build.gradle: Add the library to your app's build.gradle In your styles.xml, override the MorphDialog.Base themes (at least one, both if you wish to support light and dark themes for your app) In your app's manifest file, add the following (at least one, both if you wish to support light and dark themes for your app) ## Usage instructions This library mirror's a subset of afollestad/material-dialogs API. For example, if you have a floating action button in your activity Then your morph() might look like: Customization Listen for action button callbacks MorphDialog is not a dialog. It's another activity and the only way to get back the result of any interactions with it is through onActivityResult() . In order to use the .onPositive() , .onNegative() , .onNeutral or .onAny() callbacks, you must pass on the activity result to the morphDialog object. You must do this for each dialog that you are using individually. If you have a large number of dialogs you may prefer to use the helper function instead, which uses a varargs parameter to register the callback to multiple dialog objects: Also, note that you will receive the callbacks only after the animation has ended. Set Canceleable If you do not wa","default_branch":null,"files":null,"tree":[],"storefront":"/r/Aditya94A","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Aditya94A/Morphing-Material-Dialogs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}