Skip to content
This repository was archived by the owner on Jul 14, 2019. It is now read-only.

celerysoft/MaterialDesignDialog

Repository files navigation

Material Design Dialog

Note

Material Design Dialog is Deprecated, please use AppCompatDialog to instead of.

What is it?

Material Design Dialog is an Android dialog widget that accords with the Google Material Design.

Enabling you to use Material Design dialogs down to API 14

Features

  • Tiny size of lib, it is just a dialog, make it simple.

  • Easy to use.

Technical Information

  • Required minimum API level: 14(Android 4.0)

  • Supports all the screens sizes and density.

Usage

Step 1

Gradle

dependencies {
        compile 'com.celerysoft:materialdesigndialog:1.0.2'
}

Step 2

String message = "This dialog use material-design to design it."
		+ " Use it if you really like it,"
		+ " make it better if you feel it suck."
        + "\nThis dialog has 2 themes and"
		+ " 2 styles, hope you can like it.";
final MaterialDesignDialog dialog = new MaterialDesignDialog(this)
		.setTitle("Material Design Dialog")
		.setMessage(message)
		.setCanceledOnTouchOutside(true)
		.setPositiveButton("OK", new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        dialog.dismiss();
                    }
                });
dialog.show();

中国的开发者同仁,你可以在这里查看更详细的使用说明。

Screenshots

Screenshot 0

Screenshot 1

Screenshot 2

Screenshot 3

License

MIT

About

Android dialog that follows the Google Material Design.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages