/material-dialogs

Best Custom Dialogs Material UI design Library

Primary LanguageJava

Best Material UI design Library for Android Studio

Learnoset Material Dialogs is a powerful library for Android Studio that consist of


Why use Learnoset Material Dialogs Library

  • Easy to Use
  • Don't need to right lengthy code
  • Easy to implement
  • Responsive Designs
  • Modern Designs


How to add Learnoset Material Dialogs library to your Project?

1. Add below line in your module level build.gradle file
implementation 'com.github.learnoset:material-dialogs:1.7'

  1. Add below line in your project level build.gradle file
allprojects {
    repositories {
        google()
        jcenter()
        
        // add below line
        maven {url 'https://jitpack.io' }
    }
}

How to use Custom Update Available Dialog in Android Studio


  1. Add below code in the XML file
// Creating Dialog
AppUpdateDialog appUpdateDialog = new AppUpdateDialog(context, "V1.6");
appUpdateDialog.setCancelable(false);

// adding update features
appUpdateDialog.addUpdateFeature("Bugs Fixed");
appUpdateDialog.addUpdateFeature("Design Improvements");
appUpdateDialog.addUpdateFeature("New Functionalities");
appUpdateDialog.addUpdateFeature("More Update Features");

// show dialog
appUpdateDialog.show();

// listen for update button click
appUpdateDialog.setUpdateBtnClickListener(new UpdateBtnClickListener() {
    @Override
    public void onClick() {
      // handle click event here
    }
});
                
  1. Using Themes with Custom Update Available Dialog
appUpdateDialog.setDialogTheme(AppUpdateDialog.DialogTheme.LIGHT);
// OR
appUpdateDialog.setDialogTheme(AppUpdateDialog.DialogTheme.DARK);
// OR USING CUSTOM THEME
CustomDialogTheme customDialogTheme = new CustomDialogTheme();
customDialogTheme.setDialogBackgroundColor(Color.RED); // setting custom dialog background color
customDialogTheme.setTextColor(Color.BLACK); // text colors
customDialogTheme.setUpdateAvailableTxtColor(Color.BLACK); // setting NEW UPDATE AVAILABLE text color
customDialogTheme.setUpdateNowBtnColor(Color.BLUE); // setting Update Now button color
customDialogTheme.setWaveColorOne(Color.BLUE); // setting wave one color
customDialogTheme.setWaveColorTwo(Color.BLUE); // setting wave two  color
customDialogTheme.setVersionNameColor(Color.WHITE); // setting version name text color

appUpdateDialog.setDialogTheme(customDialogTheme);

// show dialog after setting theme
appUpdateDialog.show();

You can Visit our Website to learn more about Android App Development, Java, Python, JavaScript, Artificial Intelligence
Learnoset Website


We provide source code for Login & Register pages, Custom Dialogs, Custom Navigation Bar, Custom Toolbar, Custom Bottom Bar with material UI design and complete project files