Skip to content

shuboooom/roundedDialog

Repository files navigation

Library to show a rounded dialog instead of a default one.

How to use

One-step install

Add the following dependency to your build.gradle:

dependencies {
implementation 'com.github.shuboooom:roundedDialog:1.0'
}

How to use

Button open = findViewById(R.id.open);
        open.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                new roundedDialog.Builder(MainActivity.this)
                        .setTitle("Dialog")
                        .setMessage("This is a rounded dialog")
                        .setDoneText("Awesome Dialog")
                        .setCancelText("Cancel")
                        .setOnClick(new roundedDialog.onClick() {
                            @Override
                            public void onDone(Dialog dialog) {
    
                            
                            }

                            @Override
                            public void onCancel(Dialog dialog) {

                            }
                        })
                        .show();

            }
        });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages