├── .github
├── CODEOWNERS
├── FUNDING.yml
└── ISSUE_TEMPLATE
│ └── issue-feature-request.md
├── .gitignore
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── GIFs
├── AnimatedBottomSheetMaterialDialog.gif
├── AnimatedMaterialDialog.gif
├── BottomSheetMaterialDialog.gif
└── SimpleMaterialDialog.gif
├── LICENSE
├── MaterialDialogLibrary
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── dev
│ │ └── shreyaspatil
│ │ └── MaterialDialog
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── dev
│ │ │ └── shreyaspatil
│ │ │ └── MaterialDialog
│ │ │ ├── AbstractDialog.java
│ │ │ ├── BottomSheetMaterialDialog.java
│ │ │ ├── MaterialDialog.java
│ │ │ ├── interfaces
│ │ │ ├── DialogInterface.java
│ │ │ ├── OnCancelListener.java
│ │ │ ├── OnDismissListener.java
│ │ │ └── OnShowListener.java
│ │ │ └── model
│ │ │ ├── DialogButton.java
│ │ │ ├── DialogMessage.java
│ │ │ ├── DialogTitle.java
│ │ │ └── TextAlignment.java
│ └── res
│ │ ├── drawable
│ │ └── bottomsheet_back.xml
│ │ ├── font
│ │ └── montserrat.ttf
│ │ ├── layout-land
│ │ └── layout_alert_dialog.xml
│ │ ├── layout
│ │ └── layout_alert_dialog.xml
│ │ ├── values-v21
│ │ └── styles.xml
│ │ └── values
│ │ ├── attrs.xml
│ │ ├── colors.xml
│ │ ├── dimen.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── dev
│ └── shreyaspatil
│ └── MaterialDialog
│ └── ExampleUnitTest.java
├── README.md
├── Screenshots
├── AndroidArsenalImage.gif
├── BottomSheetMaterialDialog.png
├── MaterialDialog.png
├── MaterialDialogCodeSnippet.png
├── ScreenAnimAsset.PNG
└── ScreenAnimRes.PNG
├── _config.yml
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── dev
│ │ └── shreyaspatil
│ │ └── MaterialDialogExample
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── assets
│ │ └── delete_anim.json
│ ├── java
│ │ └── dev
│ │ │ └── shreyaspatil
│ │ │ └── MaterialDialogExample
│ │ │ └── MainActivity.java
│ └── res
│ │ ├── drawable-v24
│ │ └── ic_launcher_foreground.xml
│ │ ├── drawable
│ │ ├── ic_close.xml
│ │ ├── ic_delete.xml
│ │ └── ic_launcher_background.xml
│ │ ├── layout
│ │ └── activity_main.xml
│ │ ├── mipmap-anydpi-v26
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── dev
│ └── shreyaspatil
│ └── MaterialDialogExample
│ └── ExampleUnitTest.java
├── build.gradle
├── docs
├── allclasses-frame.html
├── allclasses-noframe.html
├── com
│ └── shreyaspatil
│ │ └── MaterialDialog
│ │ ├── AbstractDialog.OnClickListener.html
│ │ ├── AbstractDialog.html
│ │ ├── BottomSheetMaterialDialog.Builder.html
│ │ ├── BottomSheetMaterialDialog.html
│ │ ├── MaterialDialog.Builder.html
│ │ ├── MaterialDialog.html
│ │ ├── interfaces
│ │ ├── DialogInterface.html
│ │ ├── OnCancelListener.html
│ │ ├── OnDismissListener.html
│ │ ├── OnShowListener.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ └── package-tree.html
│ │ ├── model
│ │ ├── DialogButton.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ └── package-tree.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ └── package-tree.html
├── constant-values.html
├── deprecated-list.html
├── help-doc.html
├── index-all.html
├── index.html
├── overview-frame.html
├── overview-summary.html
├── overview-tree.html
├── package-list
├── script.js
└── stylesheet.css
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | * @PatilShreyas
2 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: #
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: PatilShreyas
11 | otechie: # Replace with a single Otechie username
12 | custom: ['https://www.paypal.me/PatilShreyas99/']
13 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/issue-feature-request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Issue/Bug/Feature Request
3 | about: Provide information about your bug/feature request.
4 | title: "[BUG/FEATURE REQUEST] TITLE HERE"
5 | labels: ''
6 | assignees: PatilShreyas
7 |
8 | ---
9 |
10 | Write information about Bug/Feature Request here
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | /.idea/caches
6 | /.idea/libraries
7 | /.idea/modules.xml
8 | /.idea/workspace.xml
9 | /.idea/navEditor.xml
10 | /.idea/assetWizardSettings.xml
11 | .DS_Store
12 | /build
13 | /captures
14 | .externalNativeBuild
15 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as
6 | contributors and maintainers pledge to making participation in our project and
7 | our community a harassment-free experience for everyone, regardless of age, body
8 | size, disability, ethnicity, sex characteristics, gender identity and expression,
9 | level of experience, education, socio-economic status, nationality, personal
10 | appearance, race, religion, or sexual identity and orientation.
11 |
12 | ## Our Standards
13 |
14 | Examples of behavior that contributes to creating a positive environment
15 | include:
16 |
17 | * Using welcoming and inclusive language
18 | * Being respectful of differing viewpoints and experiences
19 | * Gracefully accepting constructive criticism
20 | * Focusing on what is best for the community
21 | * Showing empathy towards other community members
22 |
23 | Examples of unacceptable behavior by participants include:
24 |
25 | * The use of sexualized language or imagery and unwelcome sexual attention or
26 | advances
27 | * Trolling, insulting/derogatory comments, and personal or political attacks
28 | * Public or private harassment
29 | * Publishing others' private information, such as a physical or electronic
30 | address, without explicit permission
31 | * Other conduct which could reasonably be considered inappropriate in a
32 | professional setting
33 |
34 | ## Our Responsibilities
35 |
36 | Project maintainers are responsible for clarifying the standards of acceptable
37 | behavior and are expected to take appropriate and fair corrective action in
38 | response to any instances of unacceptable behavior.
39 |
40 | Project maintainers have the right and responsibility to remove, edit, or
41 | reject comments, commits, code, wiki edits, issues, and other contributions
42 | that are not aligned to this Code of Conduct, or to ban temporarily or
43 | permanently any contributor for other behaviors that they deem inappropriate,
44 | threatening, offensive, or harmful.
45 |
46 | ## Scope
47 |
48 | This Code of Conduct applies both within project spaces and in public spaces
49 | when an individual is representing the project or its community. Examples of
50 | representing a project or community include using an official project e-mail
51 | address, posting via an official social media account, or acting as an appointed
52 | representative at an online or offline event. Representation of a project may be
53 | further defined and clarified by project maintainers.
54 |
55 | ## Enforcement
56 |
57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
58 | reported by contacting the project team at shreyaspatilg@gmail.com. All
59 | complaints will be reviewed and investigated and will result in a response that
60 | is deemed necessary and appropriate to the circumstances. The project team is
61 | obligated to maintain confidentiality with regard to the reporter of an incident.
62 | Further details of specific enforcement policies may be posted separately.
63 |
64 | Project maintainers who do not follow or enforce the Code of Conduct in good
65 | faith may face temporary or permanent repercussions as determined by other
66 | members of the project's leadership.
67 |
68 | ## Attribution
69 |
70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72 |
73 | [homepage]: https://www.contributor-covenant.org
74 |
75 | For answers to common questions about this code of conduct, see
76 | https://www.contributor-covenant.org/faq
77 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Feeling Awesome! Thanks for thinking about this.
2 |
3 | You can contribute us by filing issues, bugs and PRs.
4 |
5 | ### Contributing:
6 | - Open issue regarding proposed change.
7 | - Repo owner will contact you there.
8 | - If your proposed change is approved, Fork this repo and do changes.
9 | - Open PR against latest `dev` branch. Add nice description in PR.
10 | - You're done!
11 |
--------------------------------------------------------------------------------
/GIFs/AnimatedBottomSheetMaterialDialog.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/GIFs/AnimatedBottomSheetMaterialDialog.gif
--------------------------------------------------------------------------------
/GIFs/AnimatedMaterialDialog.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/GIFs/AnimatedMaterialDialog.gif
--------------------------------------------------------------------------------
/GIFs/BottomSheetMaterialDialog.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/GIFs/BottomSheetMaterialDialog.gif
--------------------------------------------------------------------------------
/GIFs/SimpleMaterialDialog.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/GIFs/SimpleMaterialDialog.gif
--------------------------------------------------------------------------------
/MaterialDialogLibrary/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | apply plugin: 'com.vanniktech.maven.publish'
3 |
4 | android {
5 | compileSdkVersion 31
6 |
7 | defaultConfig {
8 | minSdkVersion 19
9 | targetSdkVersion 31
10 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
11 |
12 | }
13 |
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 |
21 | compileOptions {
22 | sourceCompatibility JavaVersion.VERSION_1_8
23 | targetCompatibility JavaVersion.VERSION_1_8
24 | }
25 |
26 | }
27 |
28 | dependencies {
29 | implementation fileTree(dir: 'libs', include: ['*.jar'])
30 | implementation 'androidx.appcompat:appcompat:1.4.0'
31 | implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
32 | implementation 'androidx.annotation:annotation:1.3.0'
33 |
34 | // Material Design Library
35 | implementation 'com.google.android.material:material:1.4.0'
36 |
37 | // Lottie Animation Library
38 | implementation 'com.airbnb.android:lottie:4.2.2'
39 |
40 | testImplementation 'junit:junit:4.13.2'
41 | androidTestImplementation 'androidx.test:runner:1.4.0'
42 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
43 | }
44 |
45 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/androidTest/java/dev/shreyaspatil/MaterialDialog/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.InstrumentationRegistry;
6 | import androidx.test.runner.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.assertEquals;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getTargetContext();
24 |
25 | assertEquals("com.shreyaspatil.MaterialDialog.test", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/BottomSheetMaterialDialog.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog;
2 |
3 | import android.app.Activity;
4 | import android.content.Context;
5 | import android.graphics.Outline;
6 | import android.os.Build;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.view.ViewOutlineProvider;
11 | import android.widget.FrameLayout;
12 |
13 | import androidx.annotation.NonNull;
14 | import androidx.annotation.Nullable;
15 | import androidx.annotation.RawRes;
16 |
17 | import com.google.android.material.bottomsheet.BottomSheetBehavior;
18 |
19 | import dev.shreyaspatil.MaterialDialog.model.DialogButton;
20 | import dev.shreyaspatil.MaterialDialog.model.DialogMessage;
21 | import dev.shreyaspatil.MaterialDialog.model.DialogTitle;
22 |
23 | /**
24 | * Creates BottomSheet Material Dialog with 2 buttons.
25 | *
26 | * Use {@link BottomSheetMaterialDialog.Builder} to create a new instance.
27 | */
28 | @SuppressWarnings("unused")
29 | public final class BottomSheetMaterialDialog extends AbstractDialog {
30 |
31 | private BottomSheetMaterialDialog(@NonNull final Activity mActivity,
32 | @NonNull DialogTitle title,
33 | @NonNull DialogMessage message,
34 | boolean mCancelable,
35 | @NonNull DialogButton mPositiveButton,
36 | @NonNull DialogButton mNegativeButton,
37 | @RawRes int mAnimationResId,
38 | @NonNull String mAnimationFile) {
39 | super(mActivity, title, message, mCancelable, mPositiveButton, mNegativeButton, mAnimationResId, mAnimationFile);
40 |
41 | // Init Dialog, Create Bottom Sheet Dialog
42 | mDialog = new BottomSheetDialog(mActivity);
43 |
44 | LayoutInflater inflater = mActivity.getLayoutInflater();
45 |
46 | View dialogView = createView(inflater, null);
47 | mDialog.setContentView(dialogView);
48 |
49 | // Set Cancelable property
50 | mDialog.setCancelable(mCancelable);
51 |
52 | // Clip AnimationView to round Corners
53 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
54 | dialogView.setOutlineProvider(new ViewOutlineProvider() {
55 | @Override
56 | public void getOutline(View view, Outline outline) {
57 | float radius = mActivity.getResources().getDimension(R.dimen.radiusTop);
58 | outline.setRoundRect(0, 0, view.getWidth(), view.getHeight() + (int) radius, radius);
59 | }
60 | });
61 | dialogView.setClipToOutline(true);
62 | } else {
63 | dialogView.findViewById(R.id.relative_layout_dialog).setPadding(0, (int) mActivity.getResources().getDimension(R.dimen.paddingTop), 0, 0);
64 | }
65 |
66 | // Expand Bottom Sheet after showing.
67 | mDialog.setOnShowListener(dialog -> {
68 | BottomSheetDialog d = (BottomSheetDialog) dialog;
69 |
70 | FrameLayout bottomSheet = d.findViewById(com.google.android.material.R.id.design_bottom_sheet);
71 |
72 | if (bottomSheet != null) {
73 | BottomSheetBehavior.from(bottomSheet).setState(BottomSheetBehavior.STATE_EXPANDED);
74 | }
75 | });
76 | }
77 |
78 | @Override
79 | protected View createView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container) {
80 | return super.createView(inflater, container);
81 | }
82 |
83 | /**
84 | * Builder for {@link BottomSheetMaterialDialog}.
85 | */
86 | public static class Builder extends AbstractDialog.Builder {
87 | /**
88 | * @param activity where Material Dialog is to be built.
89 | */
90 | public Builder(@NonNull Activity activity) {
91 | super(activity);
92 | }
93 |
94 | /**
95 | * Builds the {@link BottomSheetMaterialDialog}.
96 | */
97 | @NonNull
98 | @Override
99 | public BottomSheetMaterialDialog build() {
100 | return new BottomSheetMaterialDialog(
101 | activity,
102 | title,
103 | message,
104 | isCancelable,
105 | positiveButton,
106 | negativeButton,
107 | animationResId,
108 | animationFile
109 | );
110 | }
111 | }
112 |
113 | static class BottomSheetDialog extends com.google.android.material.bottomsheet.BottomSheetDialog {
114 | BottomSheetDialog(@NonNull Context context) {
115 | super(context, R.style.BottomSheetDialogTheme);
116 | }
117 | }
118 | }
119 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/MaterialDialog.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog;
2 |
3 | import android.app.Activity;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 |
7 | import androidx.annotation.NonNull;
8 | import androidx.annotation.RawRes;
9 | import androidx.appcompat.app.AlertDialog;
10 |
11 | import dev.shreyaspatil.MaterialDialog.model.DialogButton;
12 | import dev.shreyaspatil.MaterialDialog.model.DialogMessage;
13 | import dev.shreyaspatil.MaterialDialog.model.DialogTitle;
14 |
15 | /**
16 | * Creates a Material Dialog with 2 buttons.
17 | *
18 | * Use {@link Builder} to create a new instance.
19 | */
20 | @SuppressWarnings("unused")
21 | public final class MaterialDialog extends AbstractDialog {
22 |
23 | private MaterialDialog(@NonNull final Activity mActivity,
24 | @NonNull DialogTitle title,
25 | @NonNull DialogMessage message,
26 | boolean mCancelable,
27 | @NonNull DialogButton mPositiveButton,
28 | @NonNull DialogButton mNegativeButton,
29 | @RawRes int mAnimationResId,
30 | @NonNull String mAnimationFile) {
31 | super(mActivity, title, message, mCancelable, mPositiveButton, mNegativeButton, mAnimationResId, mAnimationFile);
32 |
33 | // Init Dialog
34 | final AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);
35 |
36 | LayoutInflater inflater = mActivity.getLayoutInflater();
37 |
38 | View dialogView = createView(inflater, null);
39 |
40 | builder.setView(dialogView);
41 |
42 | // Set Cancelable property
43 | builder.setCancelable(mCancelable);
44 |
45 | // Create and show dialog
46 | mDialog = builder.create();
47 | }
48 |
49 | /**
50 | * Builder for {@link MaterialDialog}.
51 | */
52 | public static class Builder extends AbstractDialog.Builder {
53 | /**
54 | * @param activity where Material Dialog is to be built.
55 | */
56 | public Builder(@NonNull Activity activity) {
57 | super(activity);
58 | }
59 |
60 | /**
61 | * Builds the {@link MaterialDialog}.
62 | */
63 | @NonNull
64 | @Override
65 | public MaterialDialog build() {
66 | return new MaterialDialog(
67 | activity,
68 | title,
69 | message,
70 | isCancelable,
71 | positiveButton,
72 | negativeButton,
73 | animationResId,
74 | animationFile
75 | );
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/interfaces/DialogInterface.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.interfaces;
2 |
3 | public interface DialogInterface {
4 | void cancel();
5 | void dismiss();
6 | }
7 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/interfaces/OnCancelListener.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.interfaces;
2 |
3 | public interface OnCancelListener {
4 | void onCancel(DialogInterface dialogInterface);
5 | }
6 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/interfaces/OnDismissListener.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.interfaces;
2 |
3 | public interface OnDismissListener {
4 | void onDismiss(DialogInterface dialogInterface);
5 | }
6 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/interfaces/OnShowListener.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.interfaces;
2 |
3 | public interface OnShowListener {
4 | void onShow(DialogInterface dialogInterface);
5 | }
6 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/model/DialogButton.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.model;
2 |
3 | import dev.shreyaspatil.MaterialDialog.AbstractDialog;
4 |
5 | public class DialogButton {
6 | private String title;
7 | private int icon;
8 | private AbstractDialog.OnClickListener onClickListener;
9 |
10 | public DialogButton(String title, int icon, AbstractDialog.OnClickListener onClickListener) {
11 | this.title = title;
12 | this.icon = icon;
13 | this.onClickListener = onClickListener;
14 | }
15 |
16 | public String getTitle() {
17 | return title;
18 | }
19 |
20 | public int getIcon() {
21 | return icon;
22 | }
23 |
24 | public AbstractDialog.OnClickListener getOnClickListener() {
25 | return onClickListener;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/model/DialogMessage.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.model;
2 |
3 | import android.text.Spanned;
4 |
5 | public abstract class DialogMessage {
6 | private final TextAlignment textAlignment;
7 |
8 | private DialogMessage(TextAlignment textAlignment) {
9 | this.textAlignment = textAlignment;
10 | }
11 |
12 | public static SpannedMessage spanned(Spanned text, TextAlignment alignment) {
13 | return new SpannedMessage(text, alignment);
14 | }
15 |
16 | public static TextMessage text(String text, TextAlignment alignment) {
17 | return new TextMessage(text, alignment);
18 | }
19 |
20 | public TextAlignment getTextAlignment() {
21 | return textAlignment;
22 | }
23 |
24 | public abstract T getText();
25 |
26 | public static class SpannedMessage extends DialogMessage {
27 |
28 | private final Spanned text;
29 |
30 | SpannedMessage(Spanned text, TextAlignment textAlignment) {
31 | super(textAlignment);
32 | this.text = text;
33 | }
34 |
35 | @Override
36 | public Spanned getText() {
37 | return text;
38 | }
39 | }
40 |
41 | public static class TextMessage extends DialogMessage {
42 |
43 | private final String text;
44 |
45 | TextMessage(String text, TextAlignment textAlignment) {
46 | super(textAlignment);
47 | this.text = text;
48 | }
49 |
50 | @Override
51 | public String getText() {
52 | return text;
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/model/DialogTitle.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.model;
2 |
3 | public class DialogTitle {
4 | private final String text;
5 | private final TextAlignment textAlignment;
6 |
7 | public DialogTitle(String text, TextAlignment textAlignment) {
8 | this.text = text;
9 | this.textAlignment = textAlignment;
10 | }
11 |
12 | public String getText() {
13 | return text;
14 | }
15 |
16 | public TextAlignment getTextAlignment() {
17 | return textAlignment;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/java/dev/shreyaspatil/MaterialDialog/model/TextAlignment.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog.model;
2 |
3 | import android.view.View;
4 |
5 | public enum TextAlignment {
6 | START(View.TEXT_ALIGNMENT_TEXT_START),
7 | END(View.TEXT_ALIGNMENT_TEXT_END),
8 | CENTER(View.TEXT_ALIGNMENT_CENTER);
9 |
10 | private final int alignment;
11 |
12 | TextAlignment(int alignment) {
13 | this.alignment = alignment;
14 | }
15 |
16 | public int getAlignment() {
17 | return alignment;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/drawable/bottomsheet_back.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
12 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/font/montserrat.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/MaterialDialogLibrary/src/main/res/font/montserrat.ttf
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/layout-land/layout_alert_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
21 |
22 |
31 |
32 |
39 |
40 |
47 |
48 |
60 |
61 |
68 |
69 |
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/layout/layout_alert_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
12 |
22 |
23 |
34 |
35 |
42 |
43 |
50 |
51 |
62 |
63 |
71 |
72 |
80 |
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | @android:color/white
4 |
5 | @android:color/primary_text_light
6 | @android:color/secondary_text_light
7 |
8 | ?android:colorAccent
9 | #1E88E5
10 |
11 | ?android:colorAccent
12 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/values/dimen.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 16sp
7 | 14sp
8 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
13 |
14 |
18 |
19 |
21 |
22 |
25 |
26 |
27 |
36 |
37 |
38 |
46 |
47 |
48 |
53 |
54 |
55 |
61 |
62 |
--------------------------------------------------------------------------------
/MaterialDialogLibrary/src/test/java/dev/shreyaspatil/MaterialDialog/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialog;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.assertEquals;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/Screenshots/AndroidArsenalImage.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/Screenshots/AndroidArsenalImage.gif
--------------------------------------------------------------------------------
/Screenshots/BottomSheetMaterialDialog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/Screenshots/BottomSheetMaterialDialog.png
--------------------------------------------------------------------------------
/Screenshots/MaterialDialog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/Screenshots/MaterialDialog.png
--------------------------------------------------------------------------------
/Screenshots/MaterialDialogCodeSnippet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/Screenshots/MaterialDialogCodeSnippet.png
--------------------------------------------------------------------------------
/Screenshots/ScreenAnimAsset.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/Screenshots/ScreenAnimAsset.PNG
--------------------------------------------------------------------------------
/Screenshots/ScreenAnimRes.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/Screenshots/ScreenAnimRes.PNG
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 31
5 | defaultConfig {
6 | applicationId "com.shreyaspatil.MaterialDialogExample"
7 | minSdkVersion 19
8 | targetSdkVersion 31
9 | versionCode 1
10 | versionName "1.0"
11 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 |
20 | compileOptions {
21 | sourceCompatibility JavaVersion.VERSION_1_8
22 | targetCompatibility JavaVersion.VERSION_1_8
23 | }
24 | }
25 |
26 | dependencies {
27 | implementation fileTree(dir: 'libs', include: ['*.jar'])
28 | implementation 'androidx.appcompat:appcompat:1.4.0'
29 | implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
30 |
31 | // Material Dialog Library
32 | implementation 'dev.shreyaspatil.MaterialDialog:MaterialDialog:2.2.3'
33 |
34 | // Material Design Library
35 | implementation 'com.google.android.material:material:1.4.0'
36 |
37 | // Lottie Animation Library
38 | implementation 'com.airbnb.android:lottie:4.2.2'
39 |
40 | testImplementation 'junit:junit:4.13.2'
41 | androidTestImplementation 'androidx.test:runner:1.4.0'
42 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
43 | // implementation project(path: ':MaterialDialogLibrary')
44 | }
45 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/dev/shreyaspatil/MaterialDialogExample/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialogExample;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.InstrumentationRegistry;
6 | import androidx.test.runner.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.assertEquals;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getTargetContext();
24 |
25 | assertEquals("com.shreyaspatil.MaterialDialog", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/java/dev/shreyaspatil/MaterialDialogExample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialogExample;
2 |
3 | import android.annotation.SuppressLint;
4 | import android.os.Bundle;
5 | import android.text.Html;
6 | import android.view.View;
7 | import android.widget.Button;
8 | import android.widget.Toast;
9 |
10 | import androidx.appcompat.app.AppCompatActivity;
11 |
12 | import dev.shreyaspatil.MaterialDialog.BottomSheetMaterialDialog;
13 | import dev.shreyaspatil.MaterialDialog.MaterialDialog;
14 | import dev.shreyaspatil.MaterialDialog.interfaces.DialogInterface;
15 | import dev.shreyaspatil.MaterialDialog.interfaces.OnCancelListener;
16 | import dev.shreyaspatil.MaterialDialog.interfaces.OnDismissListener;
17 | import dev.shreyaspatil.MaterialDialog.interfaces.OnShowListener;
18 | import dev.shreyaspatil.MaterialDialog.model.TextAlignment;
19 |
20 | public class MainActivity extends AppCompatActivity implements View.OnClickListener, OnShowListener, OnCancelListener, OnDismissListener {
21 |
22 | private MaterialDialog mSimpleDialog;
23 | private MaterialDialog mAnimatedDialog;
24 | private BottomSheetMaterialDialog mSimpleBottomSheetDialog;
25 | private BottomSheetMaterialDialog mAnimatedBottomSheetDialog;
26 |
27 | @Override
28 | protected void onCreate(Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 | setContentView(R.layout.activity_main);
31 |
32 | Button mButtonSimpleDialog = findViewById(R.id.button_simple_dialog);
33 | Button mButtonAnimatedDialog = findViewById(R.id.button_animated_dialog);
34 | Button mButtonBottomSheetDialog = findViewById(R.id.button_simple_bottomsheet_dialog);
35 | Button mButtonAnimatedBottomSheetDialog = findViewById(R.id.button_animated_bottomsheet_dialog);
36 |
37 | // Simple Material Dialog
38 | mSimpleDialog = new MaterialDialog.Builder(this)
39 | .setTitle("Delete?", TextAlignment.START)
40 | .setMessage(Html.fromHtml("Are you sure want to delete this file ?"), TextAlignment.START)
41 | .setCancelable(false)
42 | .setPositiveButton("Delete", R.drawable.ic_delete, new MaterialDialog.OnClickListener() {
43 | @Override
44 | public void onClick(DialogInterface dialogInterface, int i) {
45 | Toast.makeText(getApplicationContext(), "Deleted!", Toast.LENGTH_SHORT).show();
46 | dialogInterface.dismiss();
47 | }
48 | })
49 | .setNegativeButton("Cancel", R.drawable.ic_close, new MaterialDialog.OnClickListener() {
50 | @Override
51 | public void onClick(DialogInterface dialogInterface, int which) {
52 | Toast.makeText(getApplicationContext(), "Cancelled!", Toast.LENGTH_SHORT).show();
53 | dialogInterface.dismiss();
54 | }
55 | })
56 | .build();
57 |
58 | // Simple BottomSheet Material Dialog
59 | mSimpleBottomSheetDialog = new BottomSheetMaterialDialog.Builder(this)
60 | .setTitle("Delete?", TextAlignment.CENTER)
61 | .setMessage("Are you sure want to delete this file?", TextAlignment.CENTER)
62 | .setCancelable(false)
63 | .setPositiveButton("Delete", R.drawable.ic_delete, new BottomSheetMaterialDialog.OnClickListener() {
64 | @Override
65 | public void onClick(DialogInterface dialogInterface, int i) {
66 | Toast.makeText(getApplicationContext(), "Deleted!", Toast.LENGTH_SHORT).show();
67 | dialogInterface.dismiss();
68 | }
69 | })
70 | .setNegativeButton("Cancel", R.drawable.ic_close, new BottomSheetMaterialDialog.OnClickListener() {
71 | @Override
72 | public void onClick(DialogInterface dialogInterface, int which) {
73 | Toast.makeText(getApplicationContext(), "Cancelled!", Toast.LENGTH_SHORT).show();
74 | dialogInterface.dismiss();
75 | }
76 | })
77 | .build();
78 |
79 | // Animated Simple Material Dialog
80 | mAnimatedDialog = new MaterialDialog.Builder(this)
81 | .setTitle("Delete?")
82 | .setMessage("Are you sure want to delete this file?")
83 | .setCancelable(false)
84 | .setPositiveButton("Delete", R.drawable.ic_delete, new MaterialDialog.OnClickListener() {
85 | @Override
86 | public void onClick(DialogInterface dialogInterface, int i) {
87 | Toast.makeText(getApplicationContext(), "Deleted!", Toast.LENGTH_SHORT).show();
88 | dialogInterface.dismiss();
89 | }
90 | })
91 | .setNegativeButton("Cancel", R.drawable.ic_close, new MaterialDialog.OnClickListener() {
92 | @Override
93 | public void onClick(DialogInterface dialogInterface, int which) {
94 | Toast.makeText(getApplicationContext(), "Cancelled!", Toast.LENGTH_SHORT).show();
95 | dialogInterface.dismiss();
96 | }
97 | })
98 | .setAnimation("delete_anim.json")
99 | .build();
100 |
101 | // Animated BottomSheet Material Dialog
102 | mAnimatedBottomSheetDialog = new BottomSheetMaterialDialog.Builder(this)
103 | .setTitle("Delete?")
104 | .setMessage("Are you sure want to delete this file?")
105 | .setCancelable(false)
106 | .setPositiveButton("Delete", R.drawable.ic_delete, new BottomSheetMaterialDialog.OnClickListener() {
107 | @Override
108 | public void onClick(DialogInterface dialogInterface, int i) {
109 | Toast.makeText(getApplicationContext(), "Deleted!", Toast.LENGTH_SHORT).show();
110 | dialogInterface.dismiss();
111 | }
112 | })
113 | .setNegativeButton("Cancel", R.drawable.ic_close, new BottomSheetMaterialDialog.OnClickListener() {
114 | @Override
115 | public void onClick(DialogInterface dialogInterface, int which) {
116 | Toast.makeText(getApplicationContext(), "Cancelled!", Toast.LENGTH_SHORT).show();
117 | dialogInterface.dismiss();
118 | }
119 | })
120 | .setAnimation("delete_anim.json")
121 | .build();
122 |
123 | mButtonSimpleDialog.setOnClickListener(this);
124 | mButtonBottomSheetDialog.setOnClickListener(this);
125 | mButtonAnimatedDialog.setOnClickListener(this);
126 | mButtonAnimatedBottomSheetDialog.setOnClickListener(this);
127 | }
128 |
129 | @SuppressLint("NonConstantResourceId")
130 | @Override
131 | public void onClick(View view) {
132 | switch (view.getId()) {
133 | case R.id.button_simple_dialog:
134 | mSimpleDialog.show();
135 | break;
136 |
137 | case R.id.button_simple_bottomsheet_dialog:
138 | mSimpleBottomSheetDialog.show();
139 | break;
140 |
141 | case R.id.button_animated_dialog:
142 | mAnimatedDialog.show();
143 | break;
144 |
145 | case R.id.button_animated_bottomsheet_dialog:
146 | mAnimatedBottomSheetDialog.show();
147 | break;
148 | }
149 | }
150 |
151 | @Override
152 | public void onShow(DialogInterface dialogInterface) {
153 |
154 | }
155 |
156 | @Override
157 | public void onCancel(DialogInterface dialogInterface) {
158 |
159 | }
160 |
161 | @Override
162 | public void onDismiss(DialogInterface dialogInterface) {
163 |
164 | }
165 | }
166 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_close.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_delete.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
23 |
24 |
32 |
33 |
41 |
42 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #EF5350
4 | #EF5350
5 | #F44336
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Demo - Material Dialog
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/test/java/dev/shreyaspatil/MaterialDialogExample/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package dev.shreyaspatil.MaterialDialogExample;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.assertEquals;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | mavenCentral()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.0.4'
10 | classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/docs/allclasses-frame.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | All Classes (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 | All Classes
15 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/docs/allclasses-noframe.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | All Classes (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 | All Classes
15 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/interfaces/OnCancelListener.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | OnCancelListener (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
31 |
32 | JavaScript is disabled on your browser.
33 |
34 |
35 |
53 |
54 |
62 |
68 |
71 |
72 |
83 |
84 |
85 |
86 | Summary:
87 | Nested |
88 | Field |
89 | Constr |
90 | Method
91 |
92 |
93 | Detail:
94 | Field |
95 | Constr |
96 | Method
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
108 |
109 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | Method Summary
127 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
200 |
201 |
209 |
215 |
218 |
219 |
230 |
231 |
232 |
233 | Summary:
234 | Nested |
235 | Field |
236 | Constr |
237 | Method
238 |
239 |
240 | Detail:
241 | Field |
242 | Constr |
243 | Method
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/interfaces/OnDismissListener.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | OnDismissListener (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
31 |
32 | JavaScript is disabled on your browser.
33 |
34 |
35 |
53 |
54 |
62 |
68 |
71 |
72 |
83 |
84 |
85 |
86 | Summary:
87 | Nested |
88 | Field |
89 | Constr |
90 | Method
91 |
92 |
93 | Detail:
94 | Field |
95 | Constr |
96 | Method
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
108 |
109 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | Method Summary
127 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
200 |
201 |
209 |
215 |
218 |
219 |
230 |
231 |
232 |
233 | Summary:
234 | Nested |
235 | Field |
236 | Constr |
237 | Method
238 |
239 |
240 | Detail:
241 | Field |
242 | Constr |
243 | Method
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/interfaces/OnShowListener.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | OnShowListener (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
31 |
32 | JavaScript is disabled on your browser.
33 |
34 |
35 |
53 |
54 |
60 |
66 |
69 |
70 |
81 |
82 |
83 |
84 | Summary:
85 | Nested |
86 | Field |
87 | Constr |
88 | Method
89 |
90 |
91 | Detail:
92 | Field |
93 | Constr |
94 | Method
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
106 |
107 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | Method Summary
125 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
198 |
199 |
205 |
211 |
214 |
215 |
226 |
227 |
228 |
229 | Summary:
230 | Nested |
231 | Field |
232 | Constr |
233 | Method
234 |
235 |
236 | Detail:
237 | Field |
238 | Constr |
239 | Method
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/interfaces/package-frame.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog.interfaces (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
Interfaces
19 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/interfaces/package-summary.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog.interfaces (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
79 |
80 |
83 |
127 |
128 |
146 |
178 |
179 |
180 |
181 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/interfaces/package-tree.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog.interfaces Class Hierarchy (MaterialDialogLibrary 2.0
9 | API)
10 |
11 |
12 |
13 |
14 |
15 |
26 |
27 | JavaScript is disabled on your browser.
28 |
29 |
30 |
48 |
79 |
80 |
87 |
88 |
Interface Hierarchy
89 |
107 |
108 |
109 |
127 |
158 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/model/package-frame.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog.model (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
16 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/model/package-summary.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog.model (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
78 |
79 |
82 |
83 |
84 |
85 |
87 | Class Summary
88 |
89 | Class
90 | Description
91 |
92 |
93 |
94 | DialogButton
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
124 |
155 |
156 |
157 |
158 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/model/package-tree.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog.model Class Hierarchy (MaterialDialogLibrary 2.0
9 | API)
10 |
11 |
12 |
13 |
14 |
15 |
26 |
27 | JavaScript is disabled on your browser.
28 |
29 |
30 |
48 |
49 |
50 |
51 | Prev
52 |
53 | Next
54 |
55 |
60 |
63 |
64 |
75 |
76 |
77 |
78 |
79 |
80 |
87 |
88 |
Class Hierarchy
89 |
90 | java.lang.Object
91 |
92 | com.shreyaspatil.MaterialDialog.model.DialogButton
96 |
97 |
98 |
99 |
100 |
101 |
119 |
120 |
121 |
122 | Prev
123 |
124 | Next
125 |
126 |
131 |
134 |
135 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/package-frame.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
16 |
17 |
Interfaces
18 |
23 |
Classes
24 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/package-summary.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
77 |
78 |
81 |
82 |
83 |
84 |
101 |
102 |
103 |
160 |
161 |
162 |
163 |
164 |
182 |
212 |
213 |
214 |
215 |
--------------------------------------------------------------------------------
/docs/com/shreyaspatil/MaterialDialog/package-tree.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | com.shreyaspatil.MaterialDialog Class Hierarchy (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
48 |
49 | Prev
50 | Next
51 |
52 |
53 |
58 |
61 |
62 |
73 |
74 |
75 |
76 |
77 |
78 |
85 |
86 |
Class Hierarchy
87 |
88 | java.lang.Object
89 |
116 |
117 |
118 |
Interface Hierarchy
119 |
125 |
126 |
127 |
145 |
146 |
147 | Prev
148 | Next
149 |
150 |
151 |
156 |
159 |
160 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/docs/constant-values.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | Constant Field Values (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
75 |
76 |
83 |
145 |
146 |
164 |
165 |
166 | Prev
167 | Next
168 |
169 |
173 |
176 |
177 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
--------------------------------------------------------------------------------
/docs/deprecated-list.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | Deprecated List (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
75 |
76 |
80 |
81 |
99 |
100 |
101 | Prev
102 | Next
103 |
104 |
108 |
111 |
112 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/docs/help-doc.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | API Help (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
75 |
76 |
82 |
83 |
84 |
85 | Overview
86 | The Overview page is the front page of this API
87 | document and provides a list of all packages with a summary for each. This page can
88 | also contain an overall description of the set of packages.
89 |
90 |
91 | Package
92 | Each package has a page that contains a list of its classes and interfaces, with a
93 | summary for each. This page can contain six categories:
94 |
95 | Interfaces (italic)
96 | Classes
97 | Enums
98 | Exceptions
99 | Errors
100 | Annotation Types
101 |
102 |
103 |
104 | Class/Interface
105 | Each class, interface, nested class and nested interface has its own separate page.
106 | Each of these pages has three sections consisting of a class/interface description,
107 | summary tables, and detailed member descriptions:
108 |
109 | Class inheritance diagram
110 | Direct Subclasses
111 | All Known Subinterfaces
112 | All Known Implementing Classes
113 | Class/interface declaration
114 | Class/interface description
115 |
116 |
117 | Nested Class Summary
118 | Field Summary
119 | Constructor Summary
120 | Method Summary
121 |
122 |
123 | Field Detail
124 | Constructor Detail
125 | Method Detail
126 |
127 | Each summary entry contains the first sentence from the detailed description for that
128 | item. The summary entries are alphabetical, while the detailed descriptions are in
129 | the order they appear in the source code. This preserves the logical groupings
130 | established by the programmer.
131 |
132 |
133 | Annotation Type
134 | Each annotation type has its own separate page with the following sections:
135 |
136 | Annotation Type declaration
137 | Annotation Type description
138 | Required Element Summary
139 | Optional Element Summary
140 | Element Detail
141 |
142 |
143 |
144 | Enum
145 | Each enum has its own separate page with the following sections:
146 |
147 | Enum declaration
148 | Enum description
149 | Enum Constant Summary
150 | Enum Constant Detail
151 |
152 |
153 |
154 | Tree (Class Hierarchy)
155 | There is a Class Hierarchy page for all packages,
156 | plus a hierarchy for each package. Each hierarchy page contains a list of classes
157 | and a list of interfaces. The classes are organized by inheritance structure
158 | starting with java.lang.Object
. The interfaces do not inherit from
159 | java.lang.Object
.
160 |
161 | When viewing the Overview page, clicking on "Tree" displays the hierarchy for
162 | all packages.
163 |
164 | When viewing a particular package, class or interface page, clicking "Tree"
165 | displays the hierarchy for only that package.
166 |
167 |
168 |
169 |
170 | Deprecated API
171 | The Deprecated API page lists all of the API that
172 | have been deprecated. A deprecated API is not recommended for use, generally due to
173 | improvements, and a replacement API is usually given. Deprecated APIs may be removed
174 | in future implementations.
175 |
176 |
177 | Index
178 | The Index contains an alphabetic list of all classes,
179 | interfaces, constructors, methods, and fields.
180 |
181 |
182 | Prev/Next
183 | These links take you to the next or previous class, interface, package, or related
184 | page.
185 |
186 |
187 | Frames/No Frames
188 | These links show and hide the HTML frames. All pages are available with or without
189 | frames.
190 |
191 |
192 | All Classes
193 | The All Classes link shows all classes and
194 | interfaces except non-static nested types.
195 |
196 |
197 | Serialized Form
198 | Each serializable or externalizable class has a description of its serialization
199 | fields and methods. This information is of interest to re-implementors, not to
200 | developers using the API. While there is no link in the navigation bar, you can get
201 | to this information by going to any serialized class and clicking "Serialized Form"
202 | in the "See also" section of the class description.
203 |
204 |
205 | Constant Field Values
206 | The Constant Field Values page lists the static
207 | final fields and their values.
208 |
209 |
210 |
This help file applies to API documentation generated using the standard doclet.
211 |
212 |
213 |
231 |
232 |
233 | Prev
234 | Next
235 |
236 |
240 |
243 |
244 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | MaterialDialogLibrary 2.0 API
9 |
63 |
64 |
65 |
66 |
67 |
69 |
70 |
72 |
73 |
74 | JavaScript is disabled on your browser.
75 |
76 | Frame Alert
77 | This document is designed to be viewed using the frames feature. If you see this message,
78 | you are using a non-frame-capable web client. Link to Non-frame
79 | version .
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/docs/overview-frame.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | Overview List (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
16 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/docs/overview-summary.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | Overview (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
75 |
76 |
79 |
108 |
109 |
127 |
128 |
129 | Prev
130 | Next
131 |
132 |
136 |
139 |
140 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
--------------------------------------------------------------------------------
/docs/overview-tree.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | Class Hierarchy (MaterialDialogLibrary 2.0 API)
9 |
10 |
11 |
12 |
13 |
14 |
25 |
26 | JavaScript is disabled on your browser.
27 |
28 |
29 |
47 |
75 |
76 |
88 |
89 |
Class Hierarchy
90 |
91 | java.lang.Object
92 |
123 |
124 |
125 |
Interface Hierarchy
126 |
148 |
149 |
150 |
168 |
169 |
170 | Prev
171 | Next
172 |
173 |
177 |
180 |
181 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
--------------------------------------------------------------------------------
/docs/package-list:
--------------------------------------------------------------------------------
1 | com.shreyaspatil.MaterialDialog
2 | com.shreyaspatil.MaterialDialog.interfaces
3 | com.shreyaspatil.MaterialDialog.model
4 |
--------------------------------------------------------------------------------
/docs/script.js:
--------------------------------------------------------------------------------
1 | function show(type)
2 | {
3 | count = 0;
4 | for (var key in methods) {
5 | var row = document.getElementById(key);
6 | if ((methods[key] & type) != 0) {
7 | row.style.display = '';
8 | row.className = (count++ % 2) ? rowColor : altColor;
9 | }
10 | else
11 | row.style.display = 'none';
12 | }
13 | updateTabs(type);
14 | }
15 |
16 | function updateTabs(type)
17 | {
18 | for (var value in tabs) {
19 | var sNode = document.getElementById(tabs[value][0]);
20 | var spanNode = sNode.firstChild;
21 | if (value == type) {
22 | sNode.className = activeTableTab;
23 | spanNode.innerHTML = tabs[value][1];
24 | }
25 | else {
26 | sNode.className = tableTab;
27 | spanNode.innerHTML = "" + tabs[value][1] + " ";
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
20 | # Maven Publish Details
21 | GROUP=dev.shreyaspatil.MaterialDialog
22 | POM_ARTIFACT_ID=MaterialDialog
23 | VERSION_NAME=2.2.3
24 | POM_NAME=MaterialDialog-Android
25 | POM_DESCRIPTION=Android Library to implement animated, beautiful, stylish Material Dialog in android apps easily.
26 | POM_INCEPTION_YEAR=2021
27 | POM_URL=https://github.com/PatilShreyas/MaterialDialog-Android
28 | POM_SCM_URL=https://github.com/PatilShreyas/MaterialDialog-Android
29 | POM_SCM_CONNECTION=scm:git:git://github.com/PatilShreyas/MaterialDialog-Android
30 | POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/PatilShreyas/MaterialDialog-Android
31 | POM_LICENCE_NAME=The Apache Software License, Version 2.0
32 | POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
33 | POM_LICENCE_DIST=https://github.com/PatilShreyas/MaterialDialog-Android/blob/master/LICENSE
34 | POM_DEVELOPER_ID=patilshreyas
35 | POM_DEVELOPER_NAME=Shreyas Patil
36 | POM_DEVELOPER_URL=https://github.com/patilshreyas/
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PatilShreyas/MaterialDialog-Android/e3338c6c1a69f351b85e4c98633b835917ee1452/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Jan 08 10:47:24 IST 2022
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':MaterialDialogLibrary'
2 |
--------------------------------------------------------------------------------