Android Permissions Implement Popup

android permissions

Needs

An easy way to implement modern Android Permissions instructions popup.Needs can be fully customized and showing with animations.

Download

Download
JitPack

Gradle

And add a dependency code to your module‘s build.gradle file.

Usage

Basic example of Android Permissions

This is a basic example on a screenshot. Here is how to create Needs using Needs.Builder.

Java

Create using kotlin dsl

This is how to create Needs‘s instance using kotlin dsl.

Kotlin

OnConfirmListener

We can listen to the confirm button is clicked using OnConfirmListener.

Java

Show and dismiss

Here is how to show needs popup and dismiss easily.

Java

TextForm

TextFrom is an attribute class that has some attributes about TextView for customizing popup texts.

Java

Here is how to create TextForm using kotlin dsl.

Kotlin

NeedsTheme

NeedsTheme is an attribute class for changing Needs popup theme easily.

Java

Here is how to create NeedsTheme using kotlin dsl.

Kotlin

NeedsItemTheme

NeedsTheme is an attribute class for changing Needs popup RecyclerView’s item theme easily.

Java

Here is how to create NeedsItemTheme using kotlin dsl.

Kotlin

NeedsAnimation

NeedsAnimation implements showing and dismissing popup with animations.

ELASTICCIRCULAR
NONEFADE

Java

Preference

If you want to show-up the Popup only once or a specific number of times, here is how to implement it simply.

Java

Avoid Memory leak

Dialog, PopupWindow and etc.. have memory leak issue if not dismissed before activity or fragment are destroyed.

But Lifecycles are now integrated with the Support Library since Architecture Components 1.0 Stable released.

So we can solve the memory leak issue so easily.

Just use setLifecycleOwner method. Then dismiss method will be called automatically before activity or fragment would be destroyed.

Java

Needs builder methods

Read this Helps to create a bunch of alert dialogs with Lottie

Read this A beautiful and material alert dialog in android app

Java

GitHub

[block]4[/block]/[block]5[/block]

10111

:closed_umbrella: An easy way to implement modern permission instructions popup. — Read MoreLatest commit to the master branch on 3-17-2019Download as zip

1,189 total views, 1 views today

(Visited 587 times, 1 visits today)

You May Also Like

About the Author: Android Developer

This is Mohammad I am Android Application Developer. I am the founder of Android Tutorial Online blog. I am programming lover and professional blogger from India. I spend most of my time doing programming and helping other programmers. This Android tutorial online blog for learning and share Android code.
My Chatbot
Powered by Replace Me
Android Tutorial Online

Android Tutorial Online