Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Android library for creating custom dialogs

Notifications You must be signed in to change notification settings

RMgX/android-dialog-library

Repository files navigation

Platform API

android-dialog-library

Android library for creating custom dialogs

one two

Setup Gradle

dependencies {
    ...
	        compile 'com.github.RMgX:android-dialog-library:1.0'
}

Examples

new MicroInteraction.Builder(this)
                .headerImage(R.drawable.ic_success_green)
                .title(getString(R.string.title))
                .content(getString(R.string.content))
                .cancelable(false, false)
                .animation(AnimUtils.AnimDown)
                .typefaceTitle(ApplicationConstants.HEADING_FONT)
                .typefaceContent(ApplicationConstants.BODY_FONT)
                .typefacePositiveButton(ApplicationConstants.HEADING_FONT)
                .positiveButton("OKAY", new MicroInteraction.onPositiveListener() {
                    @Override
                    public void onPositive(Dialog dialog) {
                        dialog.cancel();
                    }
                })
                .negativeButton("CANCEL", new MicroInteraction.onNegativeListener() {
                    @Override
                    public void onNegative(Dialog dialog) {
                        dialog.cancel();
                    }
                })
                .show();