diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 385c6f5..ae388c2 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -11,10 +11,7 @@
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
deleted file mode 100644
index 568bea1..0000000
--- a/.idea/kotlinc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 773fe0f..9f71c83 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,3 +1,4 @@
+
diff --git a/SJDialog/.gitignore b/SJDialog/.gitignore
deleted file mode 100644
index 42afabf..0000000
--- a/SJDialog/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/SJDialog/BasicDialogDoc.md b/SJDialog/BasicDialogDoc.md
deleted file mode 100644
index 170d04e..0000000
--- a/SJDialog/BasicDialogDoc.md
+++ /dev/null
@@ -1,147 +0,0 @@
-# BasicDialog Documentation
-Create dialog example
-```java
-BasicDialog dialog = new BasicDialog();
-dialog.Builder(context)
- .setTitle("Title")
- .setLeftButtonText("button1")
- .setRightButtonText("button2")
- .onButtonClick(() -> {
- // Do something
- })
- .show();
-```
-
-## Builder
-Apply the default theme to a dialog
-```java
-dialog.Builder(context)
-```
-
-
-Apply the app theme to a dialog **(only works with material3 theme)**
-```java
-dialog.Builder(context,true)
-```
-Apply the custom theme to a dialog **(only works with material3 theme)**
-```java
-dialog.Builder(context,theme)
-```
-## Old Dialog theme
-By default dialog colors will be set to material3 dynamic colors. With this method you can set the dialog color for the background and buttons to the older non-dynamic colors
-```java
-dialog.setOldTheme();
-```
-
-## Add onClick Listener
-onClickListener for right button. The left button is for dismissing dialog
-```java
-dialog.onButtonClick(new DialogButtonEvent() {
- @Override
- public void onButtonClick() {
- // Do something
- }
-});
-
-//or
-
-dialog.onButtonClick(() -> {
- // Do something
-});
-```
-onClickListener for left and right button
-```java
-dialog.onButtonClick(new DialogButtonEvents() {
- @Override
- public void onLeftButtonClick() {
- // Do something
- }
-
- @Override
- public void onRightButtonClick() {
- // Do something
- }
-});
-```
-
-## All BasicDialog Methods
-```java
-//Create dialog
-dialog.Builder(context);
-
-//Usin the old dialog theme
-dialog.setOldTheme();
-
-//Set title
-dialog.setTitle("Title");
-//Set message
-dialog.setMessage("Message");
-//Set title text alignment
-dialog.setTitleAlignment(TextAlignment);
-//Set message text alignment
-dialog.setMessageAlignment(TextAlignment);
-//Set left button text
-dialog.setLeftButtonText("Text");
-//Set right button text
-dialog.setRightButtonText("Text");
-
-//Set text color
-dialog.setTextColor(color);
-//Set title text color
-dialog.setTitleTextColor(color);
-//Set message text color
-dialog.setMessageTextColor(color);
-
-//Set buttons color
-dialog.setButtonsColor(color);
-//Set left button color
-dialog.setLeftButtonColor(color);
-//Set right button color
-dialog.setRightButtonColor(color);
-
-//Set buttons text color
-dialog.setButtonsTextColor(color);
-//Set text color for left button
-dialog.setLeftButtonTextColor(color);
-//Set text color for right button
-dialog.setRightButtonTextColor(color);
-
-//Set buttons background resource
-dialog.setButtonsBackgroundResource(drawable);
-//Set left button background resource
-dialog.setLeftButtonBackgroundResource(drawable);
-//Set right button background resource
-dialog.setRightButtonBackgroundResource(drawable);
-
-//Set dialog color
-dialog.setDialogBackgroundColor(color);
-//Set dialog background resource
-dialog.setDialogBackgroundResource(drawable);
-
-//Set maximum dialog width. Default is 600dp
-dialog.setMaxDialogWidth(width);
-
-//Get maximum dialog width
-int dialogWidth = dialog.getMaxDialogWidth();
-
-//Get left button
-Button leftButton = dialog.getLeftButton();
-//Get right button
-Button rightButton = dialog.getRightButton();
-
-//Set dialog animations
-dialog.setDialogAnimations(styleRes);
-
-//Enable or disable swipe down to dismiss dialog.
-//By default is set to true
-dialog.swipeToDismiss(boolean);
-
-//Set dialog onTouchListener.
-//This method will overide swipe down to dismiss action
-dialog.setOnTouchListener(onTouchListener);
-
-//Shew dialog
-dialog.show();
-//Dismiss dialog
-dialog.dismiss();
-```
diff --git a/SJDialog/CustomViewDialogDoc.md b/SJDialog/CustomViewDialogDoc.md
deleted file mode 100644
index 040a57f..0000000
--- a/SJDialog/CustomViewDialogDoc.md
+++ /dev/null
@@ -1,200 +0,0 @@
-# CustomViewDialog Documentation
-## Examples
-#### Add button example
-```java
-Button button1 = new Button(this);
-button1.setText("Button");
-
-CustomViewDialog customViewDialog = new CustomViewDialog();
-customViewDialog.Builder(this)
- .setTitle("Title")
- .addCustomView(button1)
- .show();
-```
-
-#### Add EditText example
-```java
-EditText editText = new EditText(this);
-editText.setHint("add text");
-
-CustomViewDialog customViewDialog = new CustomViewDialog();
-customViewDialog.Builder(this)
- .setTitle("Title")
- .dialogWithTwoButtons()
- .addCustomView(editText)
- .onButtonClick(() -> {
- String text = editText.getText().toString();
- // Do something
- })
- .show();
-```
-
-#### Add custom xml layout example
-```java
-View view = LayoutInflater.from(this).inflate(R.layout.custon_layout,null);
-
-CustomViewDialog customViewDialog = new CustomViewDialog();
-customViewDialog.Builder(this)
- .setTitle("Title")
- .dialogWithTwoButtons()
- .addCustomView(view)
- .show();
-
-```
-
-## Builder
-Apply the default theme to a dialog
-```java
-customViewDialog.Builder(context)
-```
-
-Apply the app theme to a dialog **(only works with material3 theme)**
-```java
-customViewDialog.Builder(context,true)
-```
-Apply the custom theme to a dialog **(only works with material3 theme)**
-```java
-customViewDialog.Builder(context,theme)
-```
-## Dialog with two buttons
-```java
-customViewDialog.dialogWithTwoButtons();
-```
-## Old Dialog theme
-By default dialog colors will be set to material3 dynamic colors. With this method you can set the dialog color for the background and buttons to the older non-dynamic colors
-```java
-customViewDialog.setOldTheme();
-```
-
-## Add View
-```java
-customViewDialog.addCustomView(view);
-```
-
-## Add onClick Listener
-onClickListener for the right button if the dialog has [two buttons](#dialog-with-two-buttons), the left button is for dismissing dialog. If the dialog has only one button, onClickListener will be set to that button.
-```java
-customViewDialog.onButtonClick(new DialogButtonEvent() {
- @Override
- public void onButtonClick() {
- // Do something
- }
-});
-
-//or
-
-customViewDialog.onButtonClick(() -> {
- // Do something
-});
-```
-onClickListener for left and right button (only works when dialog has [two buttons](#dialog-with-two-buttons))
-```java
-customViewDialog.onButtonClick(new DialogButtonEvents() {
- @Override
- public void onLeftButtonClick() {
- // Do something
- }
-
- @Override
- public void onRightButtonClick() {
- // Do something
- }
-});
-```
-## All CustomViewDialog Methods
-```java
-//Create dialog
-customViewDialog.Builder(context);
-
-//Create dialog width two buttons
-customViewDialog.dialogWithTwoButtons();
-
-//Usin the old dialog theme
-customViewDialog.setOldTheme();
-
-//Set title
-customViewDialog.setTitle("Title");
-//Set message
-customViewDialog.setMessage("Message");
-
-//Set title text alignment
-customViewDialog.setTitleAlignment(TextAlignment);
-//Set message text alignment
-customViewDialog.setMessageAlignment(TextAlignment);
-
-//Set text color
-customViewDialog.setTextColor(color);
-//Set title text color
-customViewDialog.setTitleTextColor(color);
-//Set message text color
-customViewDialog.setMessageTextColor(color);
-
-//Set button text (one button dialog)
-customViewDialog.setButtonText("Text");
-//Set left button text
-customViewDialog.setLeftButtonText("Text");
-//Set right button text
-customViewDialog.setRightButtonText("Text");
-
-//Set buttons color
-customViewDialog.setButtonsColor(color);
-//Set button color (one button dialog)
-customViewDialog.setButtonColor(color);
-//Set left button color
-customViewDialog.setLeftButtonColor(color);
-//Set right button color
-customViewDialog.setRightButtonColor(color);
-
-//Set buttons text color
-customViewDialog.setButtonsTextColor(color);
-//Set text color a button (one button dialog)
-customViewDialog.setButtonTextColor(color);
-//Set text color for left button
-customViewDialog.setLeftButtonTextColor(color);
-//Set text color for right button
-customViewDialog.setRightButtonTextColor(color);
-
-//Set buttons background resource
-customViewDialog.setButtonsBackgroundResource(drawable);
-//Set button background resource (one button dialog)
-customViewDialog.setButtonBackgroundResource(drawable);
-//Set left button background resource
-customViewDialog.setLeftButtonBackgroundResource(drawable);
-//Set right button background resource
-customViewDialog.setRightButtonBackgroundResource(drawable);
-
-//Set dialog color
-customViewDialog.setDialogBackgroundColor(color);
-//Set dialog background resource
-customViewDialog.setDialogBackgroundResource(drawable);
-
-//Add Custom view
-customViewDialog.addCustomView(view);
-
-//Set maximum dialog width. Default is 600dp
-customViewDialog.setMaxDialogWidth(width);
-
-//Get maximum dialog width
-int dialogWidth = customViewDialog.getMaxDialogWidth();
-
-//Get left button
-Button leftButton = customViewDialog.getLeftButton();
-//Get right button
-Button rightButton = customViewDialog.getRightButton();
-
-//Set dialog animations
-customViewDialog.setDialogAnimations(styleRes);
-
-//Enable or disable swipe down to dismiss dialog.
-//By default is set to true
-dialog.swipeToDismiss(boolean);
-
-//Set dialog onTouchListener.
-//This method will overide swipe down to dismiss action
-dialog.setOnTouchListener(onTouchListener);
-
-//Shew dialog
-customViewDialog.show();
-//Dismiss dialog
-customViewDialog.dismiss();
-```
diff --git a/SJDialog/ListDialogDoc.md b/SJDialog/ListDialogDoc.md
deleted file mode 100644
index 233a1c7..0000000
--- a/SJDialog/ListDialogDoc.md
+++ /dev/null
@@ -1,428 +0,0 @@
-# ListDialog Documentation
-## Examples
-#### List of String array
-```java
-String[] strings = {"item1","item2","item3"};
-
-ListDialog listDialog = new ListDialog();
-listDialog.Builder(this)
- .setItems(strings,(position, value) -> {
- // Do something
- })
- .show();
-```
-
-#### List of Objects
-```java
-class ExampleObject{
- String value;
-
- public ExampleObject(String value) {
- this.value = value;
- }
-}
-```
-
-```java
-ExampleObject[] objects = {new ExampleObject("object1"),new ExampleObject("object2"),new ExampleObject("object3")};
-
-ListDialog listDialog = new ListDialog();
-listDialog.Builder(this)
- .setItems(
- objects,
- obj -> obj.value, // get value from object
- (position, value) -> {
- // Do something
- })
- .show();
-```
-
-#### ArrayList of Objects with two values
-```java
-class ExampleObject{
- String value1;
- String value2;
-
- public ExampleObject(String value1, String value2) {
- this.value1 = value1;
- this.value2 = value2;
- }
-}
-```
-```java
-ArrayList arrayList = new ArrayList<>();
-arrayList.add(new ExampleObject("object1","value1"));
-arrayList.add(new ExampleObject("object2","value2"));
-arrayList.add(new ExampleObject("object3","value3"));
-
-ListDialog listDialog = new ListDialog();
-listDialog.Builder(this)
- .setItems(
- arrayList,
- new ListItemValues() {
- @Override
- public String getValue1(ExampleObject obj) {
- return obj.value1;
- }
-
- @Override
- public String getValue2(ExampleObject obj) {
- return obj.value2;
- }
- },
- (position, value) -> {
- // Do something
- })
- .show();
-```
-
-#### Selecting multiple items in a list
-```java
-ArrayList stringArrayList = new ArrayList<>();
-stringArrayList.add("item1");
-stringArrayList.add("item2");
-stringArrayList.add("item3");
-
-ListDialog listDialog = new ListDialog();
-listDialog.Builder(this)
- .dialogWithTwoButtons()
- .setSelectableList()
- .setItems(stringArrayList,obj -> obj)
- .onButtonClick(() -> {
- ArrayList selectedItems = listDialog.getSelectedItems();
- // Do something
- })
- .show();
-```
-
-## Builder
-Apply the default theme to a dialog
-```java
-listDialog.Builder(context)
-```
-
-Apply the app theme to a dialog **(only works with material3 theme)**
-```java
-listDialog.Builder(context,true)
-```
-Apply the custom theme to a dialog **(only works with material3 theme)**
-```java
-listDialog.Builder(context,theme)
-```
-## Dialog with two buttons
-```java
-listDialog.dialogWithTwoButtons();
-```
-## Old Dialog theme
-By default dialog colors will be set to material3 dynamic colors. With this method you can set the dialog color for the background and buttons to the older non-dynamic colors
-```java
-listDialog.setOldTheme();
-```
-
-## Select multiple items in a list
-```java
-listDialog.setSelectableList();
-```
-## Add items in a list
-You can add item in a list by setting [ReciclerView Adapter](#set-reciclerview-adapter), using [setItems()](#setitems) method or using [setImageItems()](#setimageitems) method for list with icons.
-### Set ReciclerView Adapter
-```java
-listDialog.setAdapter(recyclerViewAdapter);
-```
-### setItems
-This method uses [DefaultListAdapter](/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapter.java) for array of Strings or [DefaultListAdapterGeneric](/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapterGeneric.java) for array of Objects or ArrayList.
-
-#### Array of Strings
-You need to use [setSelectableList()](#select-multiple-items-in-a-list) firstly or add [onListItemClick](#array-of-strings-and-onlistitemclick)
-```java
-listDialog.setItems(strings);
-```
-#### Array of Strings and onListItemClick
-```java
-listDialog.setItems(strings,(position, value) -> {
- // Do something
-});
-```
-#### Array of Objects
-You need to use [setSelectableList()](#select-multiple-items-in-a-list) firstly or add [onListItemClick](#array-of-objects-and-onlistitemclick)
-```java
-listDialog.setItems(objects, new ListItemValue() {
- @Override
- public String getValue(ExampleObject obj) {
- return obj.value; // get value of an Object
- }
-});
-
-//or
-
-listDialog.setItems(objects,obj -> obj.value);
-```
-#### Array of Objects and onListItemClick
-```java
-listDialog.setItems(objects,obj -> obj.value,(position, obj) -> {
- // Do something
-});
-```
-#### Array of Objects with two values
-You need to use [setSelectableList()](#select-multiple-items-in-a-list) firstly or add [onListItemClick](#array-of-objects-with-two-values-and-onlistitemclick)
-```java
-listDialog.setItems(objects, new ListItemValues() {
- @Override
- public String getValue1(ExampleObject obj) {
- return obj.value1;
- }
-
- @Override
- public String getValue2(ExampleObject obj) {
- return obj.value2;
- }
-});
-```
-#### Array of Objects with two values and onListItemClick
-```java
-listDialog.setItems(objects, new ListItemValues() {
- @Override
- public String getValue1(ExampleObject obj) {
- return obj.value1;
- }
-
- @Override
- public String getValue2(ExampleObject obj) {
- return obj.value2;
- }
- },(position, obj) -> {
- // Do something
-});
-```
-#### ArrayList
-You need to use [setSelectableList()](#select-multiple-items-in-a-list) firstly or add [onListItemClick](#arraylist-and-onlistitemclick)
-```java
-listDialog.setItems(arrayList,obj -> obj.value);
-```
-#### ArrayList and onListItemClick
-```java
-listDialog.setItems(arrayList,obj -> obj.value,(position, obj) -> {
- // Do something
-});
-```
-#### ArrayList with two values
-You need to use [setSelectableList()](#select-multiple-items-in-a-list) firstly or add [onListItemClick](#arraylist-with-two-values-and-onlistitemclick)
-```java
-listDialog.setItems(arrayList, new ListItemValues() {
- @Override
- public String getValue1(ExampleObject obj) {
- return obj.value1;
- }
-
- @Override
- public String getValue2(ExampleObject obj) {
- return obj.value2;
- }
-});
-```
-#### ArrayList with two values and onListItemClick
-```java
-listDialog.setItems(arrayList, new ListItemValues() {
- @Override
- public String getValue1(ExampleObject obj) {
- return obj.value1;
- }
-
- @Override
- public String getValue2(ExampleObject obj) {
- return obj.value2;
- }
- },(position, obj) -> {
- // Do something
-});
-```
-### setImageItems
-Creating ArrayList of [ImageListItem](/SJDialog/src/main/java/com/sjapps/library/customdialog/ImageListItem.java)
-```java
-ArrayList listItems = new ArrayList<>();
-listItems.add(new ImageListItem("item1", drawable1));
-// or adding data of type Object
-listItems.add(new ImageListItem("item2", drawable2,data));
-```
-#### ArrayList of ImageListItem
-You need to use [setSelectableList()](#select-multiple-items-in-a-list) firstly or add [onListItemClick](#arraylist-of-two-imagelistitem-and-onlistitemclick)
-```java
-listDialog.setImageItems(listItems);
-```
-#### ArrayList of ImageListItem and onListItemClick
-```java
-listDialog.setImageItems(listItems, (position, obj) -> {
- // Do something
-});
-```
-## Set RecyclerView LayoutManager
-```java
-listDialog.setLayoutManager(layoutManager);
-```
-
-## Add onClick Listener
-onClickListener for the right button if the dialog has [two buttons](#dialog-with-two-buttons), the left button is for dismissing dialog. If the dialog has only one button, onClickListener will be set to that button.
-```java
-listDialog.onButtonClick(new DialogButtonEvent() {
- @Override
- public void onButtonClick() {
- // Do something
- }
-});
-
-//or
-
-listDialog.onButtonClick(() -> {
- // Do something
-});
-```
-onClickListener for left and right button (only works when dialog has [two buttons](#dialog-with-two-buttons))
-```java
-listDialog.onButtonClick(new DialogButtonEvents() {
- @Override
- public void onLeftButtonClick() {
- // Do something
- }
- @Override
- public void onRightButtonClick() {
- // Do something
- }
-});
-```
-## All ListDialog Methods
-```java
-//Create dialog
-listDialog.Builder(context);
-
-//Create dialog width two buttons
-listDialog.dialogWithTwoButtons();
-
-//Usin the old dialog theme
-listDialog.setOldTheme();
-
-//Set title
-listDialog.setTitle("Title");
-
-//Set message
-listDialog.setMessage("Message");
-
-//Set title text alignment
-listDialog.setTitleAlignment(TextAlignment);
-//Set message text alignment
-listDialog.setMessageAlignment(TextAlignment);
-
-//Set text color
-listDialog.setTextColor(color);
-//Set title text color
-listDialog.setTitleTextColor(color);
-//Set message text color
-listDialog.setMessageTextColor(color);
-
-//Set button text (one button dialog)
-listDialog.setButtonText("Text");
-//Set left button text
-listDialog.setLeftButtonText("Text");
-//Set right button text
-listDialog.setRightButtonText("Text");
-
-//Set buttons color
-listDialog.setButtonsColor(color);
-//Set button color (one button dialog)
-listDialog.setButtonColor(color);
-//Set left button color
-listDialog.setLeftButtonColor(color);
-//Set right button color
-listDialog.setRightButtonColor(color);
-
-//Set buttons text color
-listDialog.setButtonsTextColor(color);
-//Set text color a button (one button dialog)
-listDialog.setButtonTextColor(color);
-//Set text color for left button
-listDialog.setLeftButtonTextColor(color);
-//Set text color for right button
-listDialog.setRightButtonTextColor(color);
-
-//Set buttons background resource
-listDialog.setButtonsBackgroundResource(drawable);
-//Set button background resource (one button dialog)
-listDialog.setButtonBackgroundResource(drawable);
-//Set left button background resource
-listDialog.setLeftButtonBackgroundResource(drawable);
-//Set right button background resource
-listDialog.setRightButtonBackgroundResource(drawable);
-
-//Set dialog color
-listDialog.setDialogBackgroundColor(color);
-//Set dialog background resource
-listDialog.setDialogBackgroundResource(drawable);
-
-//Selecting multiple items in a list
-listDialog.setSelectableList();
-
-//Set text color of an items in a list
-listDialog.setListItemTextColor(color);
-//Set a background resource for items in a list
-listDialog.setListItemBackgroundResource(drawable);
-//Set a background resource for selected items in a list
-listDialog.setListItemSelectedBackgroundResource(drawable);
-//Set a background resource of a list
-listDialog.setListBackgroundResource(drawable);
-
-//Get list item background resource
-int ItemBgRes = listDialog.getListItemBgRes();
-//Get list item selected background resource
-int ItemBgResSelected = listDialog.getListItemBgResSelected();
-
-//set RecyclerView Adapter
-listDialog.setAdapter(recyclerViewAdapter);
-//Set Layout Manager
-listDialog.setLayoutManager(layoutManager);
-
-//Add items in a list
-listDialog.setItems(strings);
-listDialog.setItems(strings, listItemClick);
-listDialog.setItems(objects, listItemValue);
-listDialog.setItems(objects, listItemValue, listItemClickObj);
-listDialog.setItems(objects, listItemValues);
-listDialog.setItems(objects, listItemValues, listItemClickObj);
-listDialog.setItems(arrayList, listItemValue);
-listDialog.setItems(arrayList, listItemValue, listItemClickObj);
-listDialog.setItems(arrayList, listItemValues);
-listDialog.setItems(arrayList, listItemValues, listItemClickObj);
-listDialog.setImageItems(listItems);
-listDialog.setImageItems(listItems, listItemClickObj);
-
-//Hide 'List is empty' text
-listDialog.hideEmptyListText();
-//Change empty list text
-listDialog.setEmptyListText("text");
-
-//Set maximum dialog width. Default is 600dp
-listDialog.setMaxDialogWidth(width);
-
-//Get maximum dialog width
-int dialogWidth = listDialog.getMaxDialogWidth();
-
-//Get left button
-Button leftButton = listDialog.getLeftButton();
-
-//Get right button
-Button rightButton = listDialog.getRightButton();
-
-//Set dialog animations
-listDialog.setDialogAnimations(styleRes);
-
-//Enable or disable swipe down to dismiss dialog.
-//By default is set to true
-dialog.swipeToDismiss(boolean);
-
-//Set dialog onTouchListener.
-//This method will overide swipe down to dismiss action
-dialog.setOnTouchListener(onTouchListener);
-
-//Shew dialog
-listDialog.show();
-//Dismiss dialog
-listDialog.dismiss();
-```
diff --git a/SJDialog/MessageDialogDoc.md b/SJDialog/MessageDialogDoc.md
deleted file mode 100644
index 5be6a2a..0000000
--- a/SJDialog/MessageDialogDoc.md
+++ /dev/null
@@ -1,112 +0,0 @@
-# MessageDialog Documentation
-Message dialog example
-```java
-MessageDialog messageDialog = new MessageDialog();
-messageDialog.Builder(context)
- .setTitle("Title")
- .setMessage("Message")
- .show();
-```
-
-## Builder
-Apply the default theme to a dialog
-```java
-messageDialog.Builder(context)
-```
-
-Apply the app theme to a dialog **(only works with material3 theme)**
-```java
-messageDialog.Builder(context,true)
-```
-Apply the custom theme to a dialog **(only works with material3 theme)**
-```java
-messageDialog.Builder(context,theme)
-```
-## Old Dialog theme
-By default dialog colors will be set to material3 dynamic colors. With this method you can set the dialog color for the background and buttons to the older non-dynamic colors
-```java
-messageDialog.setOldTheme();
-```
-
-## Add onClick Listener
-```java
-messageDialog.onButtonClick(new DialogButtonEvent() {
- @Override
- public void onButtonClick() {
- // Do something
- }
-});
-
-//or
-
-messageDialog.onButtonClick(() -> {
- // Do something
-});
-```
-## All MessageDialog Methods
-```java
-//Create dialog
-messageDialog.Builder(context);
-
-//Usin the old dialog theme
-messageDialog.setOldTheme();
-
-//Set title
-messageDialog.setTitle("Title");
-//Set message
-messageDialog.setMessage("Message");
-
-//Set title text alignment
-messageDialog.setTitleAlignment(TextAlignment);
-//Set message text alignment
-messageDialog.setMessageAlignment(TextAlignment);
-
-//Set button text
-messageDialog.setButtonText("Text");
-
-//Set text color
-messageDialog.setTextColor(color);
-//Set title text color
-messageDialog.setTitleTextColor(color);
-//Set message text color
-messageDialog.setMessageTextColor(color);
-
-//Set button color
-messageDialog.setButtonColor(color);
-
-//Set button text color
-messageDialog.setButtonTextColor(color);
-
-//Set button background resource
-messageDialog.setButtonBackgroundResource(drawable);
-
-//Set dialog color
-messageDialog.setDialogBackgroundColor(color);
-//Set dialog background resource
-messageDialog.setDialogBackgroundResource(drawable);
-
-//Set maximum dialog width. Default is 600dp
-messageDialog.setMaxDialogWidth(width);
-
-//Get maximum dialog width
-int dialogWidth = messageDialog.getMaxDialogWidth();
-
-//Get button
-Button Button = messageDialog.getButton();
-
-//Set dialog animations
-messageDialog.setDialogAnimations(styleRes);
-
-//Enable or disable swipe down to dismiss dialog.
-//By default is set to true
-dialog.swipeToDismiss(boolean);
-
-//Set dialog onTouchListener.
-//This method will overide swipe down to dismiss action
-dialog.setOnTouchListener(onTouchListener);
-
-//Shew dialog
-messageDialog.show();
-//Dismiss dialog
-messageDialog.dismiss();
-```
diff --git a/SJDialog/build.gradle b/SJDialog/build.gradle
deleted file mode 100644
index b9da45f..0000000
--- a/SJDialog/build.gradle
+++ /dev/null
@@ -1,39 +0,0 @@
-plugins {
- id 'com.android.library'
-}
-
-android {
- compileSdk 31
-
- defaultConfig {
- minSdk 23
- versionCode 20
- versionName "1.6"
-
- buildConfigField 'int', 'VERSION_CODE', "${versionCode}"
- buildConfigField 'String', 'VERSION_NAME', "\"${versionName}\""
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_9
- targetCompatibility JavaVersion.VERSION_1_9
- }
-}
-
-dependencies {
-
- implementation 'androidx.appcompat:appcompat:1.4.2'
- implementation 'com.google.android.material:material:1.6.1'
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
-}
diff --git a/SJDialog/consumer-rules.pro b/SJDialog/consumer-rules.pro
deleted file mode 100644
index e69de29..0000000
diff --git a/SJDialog/images/BasicDialog day-night.png b/SJDialog/images/BasicDialog day-night.png
deleted file mode 100644
index 00180e3..0000000
Binary files a/SJDialog/images/BasicDialog day-night.png and /dev/null differ
diff --git a/SJDialog/images/BasicDialog example 1.png b/SJDialog/images/BasicDialog example 1.png
deleted file mode 100644
index 2de2b1b..0000000
Binary files a/SJDialog/images/BasicDialog example 1.png and /dev/null differ
diff --git a/SJDialog/images/BasicDialog oldTheme.png b/SJDialog/images/BasicDialog oldTheme.png
deleted file mode 100644
index 2b75454..0000000
Binary files a/SJDialog/images/BasicDialog oldTheme.png and /dev/null differ
diff --git a/SJDialog/images/CustomViewDialog day-night.png b/SJDialog/images/CustomViewDialog day-night.png
deleted file mode 100644
index 0275af4..0000000
Binary files a/SJDialog/images/CustomViewDialog day-night.png and /dev/null differ
diff --git a/SJDialog/images/CustomViewDialog example 1.png b/SJDialog/images/CustomViewDialog example 1.png
deleted file mode 100644
index 0be8953..0000000
Binary files a/SJDialog/images/CustomViewDialog example 1.png and /dev/null differ
diff --git a/SJDialog/images/CustomViewDialog example 2.png b/SJDialog/images/CustomViewDialog example 2.png
deleted file mode 100644
index b9bb1a8..0000000
Binary files a/SJDialog/images/CustomViewDialog example 2.png and /dev/null differ
diff --git a/SJDialog/images/CustomViewDialog example 3.png b/SJDialog/images/CustomViewDialog example 3.png
deleted file mode 100644
index 2c3140e..0000000
Binary files a/SJDialog/images/CustomViewDialog example 3.png and /dev/null differ
diff --git a/SJDialog/images/CustomViewDialog oldTheme.png b/SJDialog/images/CustomViewDialog oldTheme.png
deleted file mode 100644
index 431de53..0000000
Binary files a/SJDialog/images/CustomViewDialog oldTheme.png and /dev/null differ
diff --git a/SJDialog/images/ListDialog day-night.png b/SJDialog/images/ListDialog day-night.png
deleted file mode 100644
index 4b04f17..0000000
Binary files a/SJDialog/images/ListDialog day-night.png and /dev/null differ
diff --git a/SJDialog/images/ListDialog example 1.png b/SJDialog/images/ListDialog example 1.png
deleted file mode 100644
index 14c104a..0000000
Binary files a/SJDialog/images/ListDialog example 1.png and /dev/null differ
diff --git a/SJDialog/images/ListDialog example 2.png b/SJDialog/images/ListDialog example 2.png
deleted file mode 100644
index 237e20a..0000000
Binary files a/SJDialog/images/ListDialog example 2.png and /dev/null differ
diff --git a/SJDialog/images/ListDialog example 3.png b/SJDialog/images/ListDialog example 3.png
deleted file mode 100644
index 2acac3d..0000000
Binary files a/SJDialog/images/ListDialog example 3.png and /dev/null differ
diff --git a/SJDialog/images/ListDialog example 4.png b/SJDialog/images/ListDialog example 4.png
deleted file mode 100644
index 38a6943..0000000
Binary files a/SJDialog/images/ListDialog example 4.png and /dev/null differ
diff --git a/SJDialog/images/ListDialog oldTheme.png b/SJDialog/images/ListDialog oldTheme.png
deleted file mode 100644
index c31707d..0000000
Binary files a/SJDialog/images/ListDialog oldTheme.png and /dev/null differ
diff --git a/SJDialog/images/MessageDialog day-night.png b/SJDialog/images/MessageDialog day-night.png
deleted file mode 100644
index 5bf0194..0000000
Binary files a/SJDialog/images/MessageDialog day-night.png and /dev/null differ
diff --git a/SJDialog/images/MessageDialog error_day-night.png b/SJDialog/images/MessageDialog error_day-night.png
deleted file mode 100644
index f775ff9..0000000
Binary files a/SJDialog/images/MessageDialog error_day-night.png and /dev/null differ
diff --git a/SJDialog/images/MessageDialog error_oldTheme.png b/SJDialog/images/MessageDialog error_oldTheme.png
deleted file mode 100644
index dccc1d4..0000000
Binary files a/SJDialog/images/MessageDialog error_oldTheme.png and /dev/null differ
diff --git a/SJDialog/images/MessageDialog example.png b/SJDialog/images/MessageDialog example.png
deleted file mode 100644
index 76fa94b..0000000
Binary files a/SJDialog/images/MessageDialog example.png and /dev/null differ
diff --git a/SJDialog/images/MessageDialog oldTheme.png b/SJDialog/images/MessageDialog oldTheme.png
deleted file mode 100644
index ca1ebd1..0000000
Binary files a/SJDialog/images/MessageDialog oldTheme.png and /dev/null differ
diff --git a/SJDialog/proguard-rules.pro b/SJDialog/proguard-rules.pro
deleted file mode 100644
index 481bb43..0000000
--- a/SJDialog/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/SJDialog/src/androidTest/java/com/sjapps/library/ExampleInstrumentedTest.java b/SJDialog/src/androidTest/java/com/sjapps/library/ExampleInstrumentedTest.java
deleted file mode 100644
index 60f6181..0000000
--- a/SJDialog/src/androidTest/java/com/sjapps/library/ExampleInstrumentedTest.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.sjapps.library;
-
-import android.content.Context;
-
-import androidx.test.platform.app.InstrumentationRegistry;
-import androidx.test.ext.junit.runners.AndroidJUnit4;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import static org.junit.Assert.*;
-
-/**
- * Instrumented test, which will execute on an Android device.
- *
- * @see Testing documentation
- */
-@RunWith(AndroidJUnit4.class)
-public class ExampleInstrumentedTest {
- @Test
- public void useAppContext() {
- // Context of the app under test.
- Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
- assertEquals("com.sjapps.library.test", appContext.getPackageName());
- }
-}
\ No newline at end of file
diff --git a/SJDialog/src/main/AndroidManifest.xml b/SJDialog/src/main/AndroidManifest.xml
deleted file mode 100644
index c5a6f90..0000000
--- a/SJDialog/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/BasicDialog.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/BasicDialog.java
deleted file mode 100644
index 717cac4..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/BasicDialog.java
+++ /dev/null
@@ -1,437 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.content.Context;
-import android.view.View;
-import android.widget.Button;
-import android.widget.TextView;
-
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.StyleRes;
-
-import com.sjapps.library.R;
-/**@since 1.6*/
-@SuppressWarnings("unused")
-public class BasicDialog extends SJDialog{
- @Deprecated
- public static final String LONG_TYPE = "long";
- @Deprecated
- public static final String SHORT_TYPE = "short";
-
- private boolean isDeleteDialog;
-
- public BasicDialog(){
- twoButtons = true;
- }
- /** @since 1.4*/
- public BasicDialog Short(Context context, String Title){
- return Short(context,Title,null);
- }
- /** @since 1.0*/
- public BasicDialog Short(Context context, String Title, String Btn1Txt, String Btn2Txt){
- return Builder(context,Title,null,Btn1Txt,Btn2Txt);
- }
- /** @since 1.0*/
- public BasicDialog Short(Context context, String Title, String Btn2Txt){
- return Short(context,Title,null,Btn2Txt);
- }
- /** @since 1.4*/
- public BasicDialog Long(Context context, String Title, String Message){
- return Long(context,Title,Message,null);
- }
- /** @since 1.0*/
- public BasicDialog Long(Context context, String Title, String Text, String Btn1Txt, String Btn2Txt){
- return Builder(context,Title,Text,Btn1Txt,Btn2Txt);
- }
- /** @since 1.0*/
- public BasicDialog Long(Context context, String Title, String Text, String Btn2Txt){
- return Long(context,Title,Text,null,Btn2Txt);
- }
- /** @since 1.0*/
- public BasicDialog Delete(Context context, String Title){
- return Builder(context,Title,null,null,null).deleteAttributes();
- }
- /** @since 1.0*/
- public BasicDialog Delete(Context context){
- return Builder(context).deleteAttributes();
- }
-
- public BasicDialog Delete(Context context, int theme){
- return Builder(context,theme).deleteAttributes();
- }
-
- public BasicDialog Delete(Context context, boolean useAppTheme){
- return Builder(context,useAppTheme).deleteAttributes();
- }
-
- private BasicDialog deleteAttributes(){
- isDeleteDialog = true;
- return setTitle("Delete?")
- .setRightButtonColor(MATERIAL3_RED_BUTTON)
- .setRightButtonText("Delete");
- }
- /**
- * @deprecated Use {@link BasicDialog#Builder(Context)}
- * */
- @Deprecated(since = "1.6")
- public BasicDialog DialogBuilder(Context context){
- return Builder(context);
- }
- /**
- * @deprecated Use {@link BasicDialog#Builder(Context, boolean)}
- * @since 1.6
- */
- @Deprecated
- public BasicDialog DialogBuilder(Context context, boolean useAppTheme){
- return Builder(context, useAppTheme);
- }
- /**
- * @deprecated Use {@link BasicDialog#Builder(Context, int)}
- */
- @Deprecated(since = "1.6")
- public BasicDialog DialogBuilder(Context context, int theme){
- return Builder(context,theme);
- }
-
- /**
- * @deprecated Dialog type is automatic. Use {@link BasicDialog#Builder(Context)}
- * @since 1.3
- */
- @Deprecated(since = "1.4")
- public BasicDialog DialogBuilder(Context context, String dialogType){
- return Builder(context);
- }
- /**
- * @deprecated Use {@link BasicDialog#Builder(Context, String, String, String, String)}
- * @since 1.0
- */
- @Deprecated(since = "1.6")
- public BasicDialog DialogBuilder(Context context, String Title, String Text, String Btn1Txt, String Btn2Txt){
- return Builder(context,Title,Text,Btn1Txt,Btn2Txt);
- }
- public BasicDialog Builder(Context context){
- super.Builder(context,R.layout.basic_dialog);
- return this;
- }
- public BasicDialog Builder(Context context, boolean useAppTheme){
- super.Builder(context,R.layout.basic_dialog,useAppTheme);
- return this;
- }
- public BasicDialog Builder(Context context,@StyleRes int theme){
- super.Builder(context,R.layout.basic_dialog,theme,false);
- return this;
- }
- public BasicDialog Builder(Context context, String Title, String Text, String Btn1Txt, String Btn2Txt){
- super.Builder(context,R.layout.basic_dialog);
- TextView TitleTv = dialog.findViewById(R.id.titleText);
- if (Btn1Txt == null) {
- button1.setOnClickListener(v -> dialog.dismiss());
- }else button1.setText(Btn1Txt);
- if (Btn2Txt != null) {
- button2.setText(Btn2Txt);
- }
- if (Text != null){
- setMessage(Text);
- }
- if (Title == null){
- return this;
- }
- TitleTv.setText(Title);
- return this;
- }
- /**
- * Set a dialog type.
- * @param dialogType type of a dialog. Supported types: {@link #SHORT_TYPE} and {@link #LONG_TYPE}
- * @return current class
- * @deprecated Old method, not in use. Remove this.
- * @since 1.4
- * */
- @Deprecated
- public BasicDialog setDialogType(String dialogType){
- //Nothing here!!
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public BasicDialog setOldTheme(){
- super.setOldTheme();
- if (isDeleteDialog)
- super.setRightButtonColor(RED_BUTTON);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public BasicDialog setTitle(String title){
- super.setTitle(title);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public BasicDialog setMessage(String message){
- super.setMessage(message);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public BasicDialog setTitleAlignment(int textAlignment) {
- super.setTitleAlignment(textAlignment);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public BasicDialog setMessageAlignment(int textAlignment) {
- super.setMessageAlignment(textAlignment);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public BasicDialog setTextColor(int color) {
- super.setTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public BasicDialog setTitleTextColor(int color) {
- super.setTitleTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public BasicDialog setMessageTextColor(int color) {
- super.setMessageTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setLeftButtonText(String text){
- super.setLeftButtonText(text);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setRightButtonText(String text){
- super.setRightButtonText(text);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setButtonsTextColor(@ColorInt int color){
- super.setButtonsTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setLeftButtonTextColor(@ColorInt int color){
- super.setLeftButtonTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setRightButtonTextColor(@ColorInt int color){
- super.setRightButtonTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setButtonsColor(@ColorInt int color){
- super.setButtonsColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setLeftButtonColor(@ColorInt int color){
- super.setLeftButtonColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setRightButtonColor(@ColorInt int color){
- super.setRightButtonColor(color);
- return this;
- }
-
- @Override
- public BasicDialog setButtonsColor(@ButtonColor String color){
- super.setButtonsColor(color);
- return this;
- }
-
- @Override
- public BasicDialog setLeftButtonColor(@ButtonColor String color){
- super.setLeftButtonColor(color);
- return this;
- }
-
- @Override
- public BasicDialog setRightButtonColor(@ButtonColor String color){
- super.setRightButtonColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public BasicDialog setDialogBackgroundColor(int color) {
- super.setDialogBackgroundColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public BasicDialog setDialogBackgroundResource(@DrawableRes int drawable){
- super.setDialogBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public BasicDialog setButtonsBackgroundResource(@DrawableRes int drawable){
- super.setButtonsBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public BasicDialog setLeftButtonBackgroundResource(@DrawableRes int drawable){
- super.setLeftButtonBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public BasicDialog setRightButtonBackgroundResource(@DrawableRes int drawable){
- super.setRightButtonBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.0*/
- @Override
- public BasicDialog onButtonClick(DialogButtonEvent dialogButtonEvent){
- super.onButtonClick(dialogButtonEvent);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.0*/
- @Override
- public BasicDialog onButtonClick(DialogButtonEvents dialogButtonEvents) {
- super.onButtonClick(dialogButtonEvents);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public BasicDialog show() {
- super.show();
- return this;
- }
-
- @Override
- protected int setButtonsRootLayoutID() {
- return R.id.buttons;
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public BasicDialog setMaxDialogWidth(int maxDialogWidth) {
- super.setMaxDialogWidth(maxDialogWidth);
- return this;
-
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public BasicDialog setOnTouchListener(View.OnTouchListener onTouchListener) {
- super.setOnTouchListener(onTouchListener);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public BasicDialog swipeToDismiss(boolean isSwipeToDismiss) {
- super.swipeToDismiss(isSwipeToDismiss);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public BasicDialog setDialogAnimations(int styleRes) {
- super.setDialogAnimations(styleRes);
- return this;
- }
-
- @Override
- protected void setButtons() {
- setButton1(R.id.btn1);
- setButton2(R.id.btn2);
- }
-
- @Override
- public Button getLeftButton() {
- return super.getLeftButton();
- }
-
- @Override
- public Button getRightButton() {
- return super.getRightButton();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getTitleTextView() {
- return super.getTitleTextView();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getMessageTextView() {
- return super.getMessageTextView();
- }
-}
-
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/CustomViewDialog.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/CustomViewDialog.java
deleted file mode 100644
index 439d679..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/CustomViewDialog.java
+++ /dev/null
@@ -1,393 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.content.Context;
-import android.view.View;
-import android.widget.Button;
-import android.widget.LinearLayout;
-import android.widget.TextView;
-
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.StyleRes;
-
-import com.sjapps.library.R;
-/**@since 1.5*/
-@SuppressWarnings("unused")
-public class CustomViewDialog extends SJDialog{
-
- private LinearLayout rootView;
-
- public CustomViewDialog(){
-
- }
-
- public CustomViewDialog Builder(Context context){
- return Builder(context,false);
- }
-
- public CustomViewDialog Builder(Context context,@StyleRes int theme){
- super.Builder(context,R.layout.custom_view_dialog,theme, false);
- rootView = dialog.findViewById(R.id.customViewRoot);
- onLeftButtonClick(dialog::dismiss);
- return this;
- }
-
- public CustomViewDialog Builder(Context context,boolean useAppTheme){
- super.Builder(context,R.layout.custom_view_dialog,useAppTheme);
- rootView = dialog.findViewById(R.id.customViewRoot);
- onLeftButtonClick(dialog::dismiss);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setOldTheme(){
- super.setOldTheme();
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setTitle(String title){
- super.setTitle(title);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setMessage(String message) {
- super.setMessage(message);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public CustomViewDialog setTitleAlignment(int textAlignment) {
- super.setTitleAlignment(textAlignment);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public CustomViewDialog setMessageAlignment(int textAlignment) {
- super.setMessageAlignment(textAlignment);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setTextColor(int color) {
- super.setTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public CustomViewDialog setTitleTextColor(int color) {
- super.setTitleTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public CustomViewDialog setMessageTextColor(int color) {
- super.setMessageTextColor(color);
- return this;
- }
-
- /**
- * Set a button text.
- * @param text button text
- * @return current class
- * @since 1.5
- * */
- public CustomViewDialog setButtonText(String text){
- return setLeftButtonText(text);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setLeftButtonText(String text){
- super.setLeftButtonText(text);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setRightButtonText(String text){
- super.setRightButtonText(text);
- return this;
- }
-
- /**
- * Set button text color.
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.5
- * */
- public CustomViewDialog setButtonTextColor(@ColorInt int color){
- return setLeftButtonTextColor(color);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setButtonsTextColor(@ColorInt int color){
- super.setButtonsTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setLeftButtonTextColor(@ColorInt int color){
- super.setLeftButtonTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setRightButtonTextColor(@ColorInt int color){
- super.setRightButtonTextColor(color);
- return this;
- }
-
- /**
- * Set button color.
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.5
- * */
- public CustomViewDialog setButtonColor(@ColorInt int color){
- return setLeftButtonColor(color);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setButtonsColor(@ColorInt int color){
- super.setButtonsColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setLeftButtonColor(@ColorInt int color){
- super.setLeftButtonColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setRightButtonColor(@ColorInt int color){
- super.setRightButtonColor(color);
- return this;
- }
-
- @Override
- public CustomViewDialog setButtonColor(@ButtonColor String color) {
- super.setButtonColor(color);
- return this;
- }
-
- @Override
- public CustomViewDialog setButtonsColor(@ButtonColor String color){
- super.setButtonsColor(color);
- return this;
- }
-
- @Override
- public CustomViewDialog setLeftButtonColor(@ButtonColor String color){
- super.setLeftButtonColor(color);
- return this;
- }
-
- @Override
- public CustomViewDialog setRightButtonColor(@ButtonColor String color){
- super.setRightButtonColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public CustomViewDialog setDialogBackgroundColor(int color) {
- super.setDialogBackgroundColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setDialogBackgroundResource(@DrawableRes int drawable){
- super.setDialogBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set background resource for button.
- * @param drawable resource id
- * @return current class
- * @since 1.5
- * */
- public CustomViewDialog setButtonBackgroundResource(@DrawableRes int drawable){
- return setLeftButtonBackgroundResource(drawable);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setButtonsBackgroundResource(@DrawableRes int drawable){
- super.setButtonsBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setLeftButtonBackgroundResource(@DrawableRes int drawable){
- super.setLeftButtonBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setRightButtonBackgroundResource(@DrawableRes int drawable){
- super.setRightButtonBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set onClick listener for a button
- *
- * @param dialogButtonEvent dialog button event
- * @return current class
- * @since 1.5
- */
- @Override
- public CustomViewDialog onButtonClick(DialogButtonEvent dialogButtonEvent){
- if (twoButtons)
- super.onButtonClick(dialogButtonEvent);
- else
- super.onLeftButtonClick(dialogButtonEvent);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog onButtonClick(DialogButtonEvents dialogButtonEvents) {
- super.onButtonClick(dialogButtonEvents);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog show() {
- super.show();
- return this;
- }
-
- @Override
- protected int setButtonsRootLayoutID() {
- return R.id.buttons;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setMaxDialogWidth(int maxDialogWidth) {
- super.setMaxDialogWidth(maxDialogWidth);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog setDialogAnimations(int styleRes) {
- super.setDialogAnimations(styleRes);
- return this;
- }
-
- @Override
- protected void setButtons() {
- setButton1(R.id.btn1);
- setButton2(R.id.btn2);
- }
-
- @Override
- public Button getLeftButton() {
- return super.getLeftButton();
- }
-
- @Override
- public Button getRightButton() {
- return super.getRightButton();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getTitleTextView() {
- return super.getTitleTextView();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getMessageTextView() {
- return super.getMessageTextView();
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public CustomViewDialog dialogWithTwoButtons() {
- super.dialogWithTwoButtons();
- setButton2Visibility(View.VISIBLE);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public CustomViewDialog setOnTouchListener(View.OnTouchListener onTouchListener) {
- super.setOnTouchListener(onTouchListener);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public CustomViewDialog swipeToDismiss(boolean isSwipeToDismiss) {
- super.swipeToDismiss(isSwipeToDismiss);
- return this;
- }
-
- @Override
- public void setButton2Visibility(int visibility) {
- super.setButton2Visibility(visibility);
- }
-
- public CustomViewDialog addCustomView(View view){
- rootView.addView(view);
- return this;
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/DialogButtonEvent.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/DialogButtonEvent.java
deleted file mode 100644
index 484bf56..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/DialogButtonEvent.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.sjapps.library.customdialog;
-
-public interface DialogButtonEvent {
- void onButtonClick();
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/DialogButtonEvents.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/DialogButtonEvents.java
deleted file mode 100644
index b423d7e..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/DialogButtonEvents.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.sjapps.library.customdialog;
-
-public interface DialogButtonEvents {
- void onLeftButtonClick();
- void onRightButtonClick();
-}
-
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/ImageListItem.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/ImageListItem.java
deleted file mode 100644
index 4066546..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/ImageListItem.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.graphics.drawable.Drawable;
-
-public class ImageListItem {
-
- private String name;
- private Drawable image;
- private Object data;
-
- public ImageListItem() {
- }
-
- public ImageListItem(String name, Drawable image) {
- this.name = name;
- this.image = image;
- }
-
- public ImageListItem(String name, Drawable image, Object data) {
- this.name = name;
- this.image = image;
- this.data = data;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public Drawable getImage() {
- return image;
- }
-
- public void setImage(Drawable image) {
- this.image = image;
- }
-
- public Object getData() {
- return data;
- }
-
- public void setData(Object data) {
- this.data = data;
- }
-
- @Override
- public String toString() {
- return "ImageListItem{" +
- "name='" + name + '\'' +
- ", image=" + image +
- ", data=" + data +
- '}';
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListDialog.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/ListDialog.java
deleted file mode 100644
index 0be8d42..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListDialog.java
+++ /dev/null
@@ -1,931 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.content.Context;
-import android.view.View;
-import android.widget.Button;
-import android.widget.TextView;
-
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.Nullable;
-import androidx.annotation.StyleRes;
-import androidx.recyclerview.widget.GridLayoutManager;
-import androidx.recyclerview.widget.LinearLayoutManager;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.sjapps.library.R;
-import com.sjapps.library.customdialog.adapter.DefaultImageListAdapter;
-import com.sjapps.library.customdialog.adapter.DefaultListAdapter;
-import com.sjapps.library.customdialog.adapter.DefaultListAdapterGeneric;
-import com.sjapps.library.customdialog.list.events.ListItemClick;
-import com.sjapps.library.customdialog.list.events.ListItemClickObj;
-
-import java.util.ArrayList;
-/**@since 1.5*/
-@SuppressWarnings({"unused", "unchecked","UnusedReturnValue"})
-public class ListDialog extends SJDialog {
-
- RecyclerView listRV;
- boolean isSelectableList = false;
- boolean hideEmptyListTxt = false;
- boolean hasAdapter = false;
- boolean waitForLayoutManager = false;
-
- private @DrawableRes int listItemBgRes = R.drawable.ripple_list;
- private @DrawableRes int listItemBgResSelected = R.drawable.ripple_list_selected;
- private @ColorInt int listItemBgColor = -1;
- private @ColorInt int listItemBgColorSelected = -1;
- private int listItemTextColor = 1;
- private RecyclerView.LayoutManager layoutManager = null;
-
- RecyclerView.Adapter> adapter;
- ArrayList> selectedItems = new ArrayList<>();
- TextView emptyListTxt;
-
- public ListDialog() {
-
- }
-
- public ListDialog Builder(Context context) {
- return Builder(context, false);
- }
-
- public ListDialog Builder(Context context, @StyleRes int theme) {
- super.Builder(context, R.layout.list_dialog, theme, false);
- listRV = dialog.findViewById(R.id.list);
- onLeftButtonClick(dialog::dismiss);
- emptyListTxt = dialog.findViewById(R.id.emptyListTxt);
- return this;
- }
-
- public ListDialog Builder(Context context, boolean useAppTheme) {
- super.Builder(context, R.layout.list_dialog, useAppTheme);
- listRV = dialog.findViewById(R.id.list);
- onLeftButtonClick(dialog::dismiss);
- emptyListTxt = dialog.findViewById(R.id.emptyListTxt);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setOldTheme() {
- super.setOldTheme();
- setListOldColor();
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setTitle(String title) {
- super.setTitle(title);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setMessage(String message) {
- super.setMessage(message);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public ListDialog setTitleAlignment(int textAlignment) {
- super.setTitleAlignment(textAlignment);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public ListDialog setMessageAlignment(int textAlignment) {
- super.setMessageAlignment(textAlignment);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public ListDialog setTextColor(int color) {
- super.setTextColor(color);
- setListItemTextColor(color);
- setEmptyListTxtColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public ListDialog setTitleTextColor(int color) {
- super.setTitleTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public ListDialog setMessageTextColor(int color) {
- super.setMessageTextColor(color);
- return this;
- }
-
- /**
- * Set a button text.
- *
- * @param text button text
- * @return current class
- * @since 1.5
- */
- public ListDialog setButtonText(String text) {
- return setLeftButtonText(text);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setLeftButtonText(String text) {
- super.setLeftButtonText(text);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setRightButtonText(String text) {
- super.setRightButtonText(text);
- return this;
- }
-
- /**
- * Set button text color.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.5
- */
- public ListDialog setButtonTextColor(@ColorInt int color) {
- return setLeftButtonTextColor(color);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setButtonsTextColor(@ColorInt int color) {
- super.setButtonsTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setLeftButtonTextColor(@ColorInt int color) {
- super.setLeftButtonTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setRightButtonTextColor(@ColorInt int color) {
- super.setRightButtonTextColor(color);
- return this;
- }
-
- /**
- * Set button color.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.5
- */
- public ListDialog setButtonColor(@ColorInt int color) {
- return setLeftButtonColor(color);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setButtonsColor(@ColorInt int color) {
- super.setButtonsColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setLeftButtonColor(@ColorInt int color) {
- super.setLeftButtonColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setRightButtonColor(@ColorInt int color) {
- super.setRightButtonColor(color);
- return this;
- }
-
- @Override
- public ListDialog setButtonColor(@ButtonColor String color) {
- super.setButtonColor(color);
- return this;
- }
-
- @Override
- public ListDialog setButtonsColor(@ButtonColor String color) {
- super.setButtonsColor(color);
- return this;
- }
-
- @Override
- public ListDialog setLeftButtonColor(@ButtonColor String color) {
- super.setLeftButtonColor(color);
- return this;
- }
-
- @Override
- public ListDialog setRightButtonColor(@ButtonColor String color) {
- super.setRightButtonColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public ListDialog setDialogBackgroundColor(int color) {
- super.setDialogBackgroundColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setDialogBackgroundResource(@DrawableRes int drawable) {
- super.setDialogBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set background resource for button.
- *
- * @param drawable resource id
- * @return current class
- * @since 1.5
- */
- public ListDialog setButtonBackgroundResource(@DrawableRes int drawable) {
- return setLeftButtonBackgroundResource(drawable);
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setButtonsBackgroundResource(@DrawableRes int drawable) {
- super.setButtonsBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setLeftButtonBackgroundResource(@DrawableRes int drawable) {
- super.setLeftButtonBackgroundResource(drawable);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setRightButtonBackgroundResource(@DrawableRes int drawable) {
- super.setRightButtonBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set onClick listener for a button
- *
- * @param dialogButtonEvent dialog button event
- * @return current class
- * @since 1.5
- */
- @Override
- public ListDialog onButtonClick(DialogButtonEvent dialogButtonEvent) {
- if (twoButtons)
- super.onButtonClick(dialogButtonEvent);
- else
- super.onLeftButtonClick(dialogButtonEvent);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog onButtonClick(DialogButtonEvents dialogButtonEvents) {
- super.onButtonClick(dialogButtonEvents);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog show() {
- if (layoutManager == null)
- layoutManager = new LinearLayoutManager(context);
- if (!waitForLayoutManager)
- listRV.setLayoutManager(layoutManager);
-
- listRV.setAdapter(adapter);
- if (adapter == null)
- checkListsSize(0);
-
- super.show();
-
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setMaxDialogWidth(int maxDialogWidth) {
- super.setMaxDialogWidth(maxDialogWidth);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog setDialogAnimations(int styleRes) {
- super.setDialogAnimations(styleRes);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public ListDialog dialogWithTwoButtons() {
- super.dialogWithTwoButtons();
- setButton2Visibility(View.VISIBLE);
- return this;
- }
-
- @Override
- public void setButton2Visibility(int visibility) {
- super.setButton2Visibility(visibility);
- }
-
- private void setListOldColor() {
- listItemBgRes = R.drawable.ripple_list_old;
- listItemBgResSelected = R.drawable.ripple_list_selected_old;
- }
-
- /**
- * Set background resource for a list
- *
- * @param drawable drawable resource
- * @return current class
- * @since 1.5
- */
- public ListDialog setListBackgroundResource(@DrawableRes int drawable) {
- listRV.setBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set background resource for a item in a list
- *
- * @param drawable drawable resource
- * @return current class
- * @since 1.5
- */
- public ListDialog setListItemBackgroundResource(@DrawableRes int drawable) {
- listItemBgRes = drawable;
- return this;
- }
-
- /**
- * Set background resource for a selected item in a list
- *
- * @param drawable drawable resource
- * @return current class
- * @since 1.5
- */
- public ListDialog setListItemSelectedBackgroundResource(@DrawableRes int drawable) {
- listItemBgResSelected = drawable;
- return this;
- }
-
- /**
- * Set background color for a item in a list
- *
- * @param color {@link ColorInt}
- * @return current class
- * @since 1.6
- */
- public ListDialog setListItemBackgroundColor(@ColorInt int color) {
- listItemBgColor = color;
- return this;
- }
-
- /**
- * Set background color for a selected item in a list
- *
- * @param color {@link ColorInt}
- * @return current class
- * @since 1.6
- */
- public ListDialog setListItemSelectedBackgroundColor(@ColorInt int color) {
- listItemBgColorSelected = color;
- return this;
- }
-
- /**
- * Set text color for item in a list
- *
- * @param listItemTextColor color for a text
- * @return current class
- * @since 1.6
- */
- public ListDialog setListItemTextColor(int listItemTextColor) {
- this.listItemTextColor = listItemTextColor;
- return this;
- }
-
- private void setEmptyListTxtColor(int color) {
- emptyListTxt.setTextColor(color);
- }
-
- /**
- * Hide {@link #emptyListTxt} when list is empty
- * @since 1.6
- * @return current class
- */
- public ListDialog hideEmptyListText() {
- hideEmptyListTxt = true;
- return this;
- }
-
- /**
- * Set text to display when list is empty
- * @param text Text
- * @since 1.6
- * @return current class
- */
- public ListDialog setEmptyListText(String text){
- emptyListTxt.setText(text);
- return this;
- }
-
- /**
- * Get a dialog list
- *
- * @return dialog list
- * @since 1.5
- */
- public RecyclerView getRecycleView() {
- return listRV;
- }
-
- @Override
- protected int setButtonsRootLayoutID() {
- return R.id.buttons;
- }
-
- @Override
- protected void setButtons() {
- setButton1(R.id.btn1);
- setButton2(R.id.btn2);
- }
-
- @Override
- public Button getLeftButton() {
- return super.getLeftButton();
- }
-
- @Override
- public Button getRightButton() {
- return super.getRightButton();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getTitleTextView() {
- return super.getTitleTextView();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getMessageTextView() {
- return super.getMessageTextView();
- }
-
- /**
- * Set items for a list
- *
- * @param listOfItems Array of {@link String}
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(String[] listOfItems) {
- return setItems(listOfItems, (ListItemClick) null);
- }
-
-
- /**
- * Set items for a list and ListItemClick event
- *
- * @param listOfItems Array of {@link String}
- * @param itemClick ListItemClick event
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(String[] listOfItems, @Nullable ListItemClick itemClick) {
-
- if (hasAdapter)
- throw tooManyAdapters;
-
- if (!isSelectableList && itemClick == null)
- throw nullListItemClick(ListItemClick.class);
-
- checkListsSize(listOfItems.length);
-
- adapter = new DefaultListAdapter(listOfItems,
- isSelectableList,
- itemClick,
- (ArrayList) selectedItems,
- listItemBgRes,
- listItemBgResSelected,
- listItemTextColor,
- listItemBgColor,
- listItemBgColorSelected);
- hasAdapter = true;
- return this;
- }
-
- /**
- * Set items for a list and String value of an object for use in a list
- *
- * @param objArray Array of {@link Object}
- * @param value {@link ListItemValue} for getting String value of an object
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(T[] objArray, ListItemValue value) {
- return setItems(objArray, value, null);
- }
-
- /**
- * Set items for a list and String values of an object for use in a list
- *
- * @param objArray Array of {@link Object}
- * @param values {@link ListItemValues} for getting String values of an object. {@link ListItemValues#getValue1(Object)}
- * for first value and {@link ListItemValues#getValue1(Object)} for second value
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(T[] objArray, ListItemValues values) {
- return setItems(objArray, values, null);
- }
-
-
- /**
- * Set items for a list and String value of an object for use in a list
- *
- * @param arrayList {@link ArrayList} of {@link Object}
- * @param value {@link ListItemValue} for getting String value of an object
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(ArrayList arrayList, ListItemValue value) {
- return setItems(arrayList, value, null);
- }
-
-
- /**
- * Set items for a list and String values of an object for use in a list
- *
- * @param arrayList {@link ArrayList} of {@link Object}
- * @param values {@link ListItemValues} for getting String values of an object. {@link ListItemValues#getValue1(Object)}
- * for first value and {@link ListItemValues#getValue1(Object)} for second value
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(ArrayList arrayList, ListItemValues values) {
- return setItems(arrayList, values, null);
- }
-
-
- /**
- * Set items for a list, String value of an object for use in a list and ListItemClick event
- *
- * @param objArray Array of {@link Object}
- * @param value {@link ListItemValue} for getting String value of an object
- * @param itemClick ListItemClick event
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(T[] objArray, ListItemValue value, @Nullable ListItemClickObj itemClick) {
-
- if (hasAdapter)
- throw tooManyAdapters;
-
- if (!isSelectableList && itemClick == null)
- throw nullListItemClick(ListItemClickObj.class);
-
- checkListsSize(objArray.length);
-
- adapter = new DefaultListAdapterGeneric<>(objArray,
- value,
- isSelectableList,
- itemClick,
- (ArrayList) selectedItems,
- listItemBgRes,
- listItemBgResSelected,
- listItemTextColor,
- listItemBgColor,
- listItemBgColorSelected);
- hasAdapter = true;
- return this;
- }
-
- /**
- * Set items for a list, String values of an object for use in a list and ListItemClick event
- *
- * @param objArray Array of {@link Object}
- * @param values {@link ListItemValues} for getting String values of an object. {@link ListItemValues#getValue1(Object)}
- * for first value and {@link ListItemValues#getValue1(Object)} for second value
- * @param itemClick ListItemClick event
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(T[] objArray, ListItemValues values, @Nullable ListItemClickObj itemClick) {
-
- if (hasAdapter)
- throw tooManyAdapters;
-
- if (!isSelectableList && itemClick == null)
- throw nullListItemClick(ListItemClickObj.class);
-
- checkListsSize(objArray.length);
-
- adapter = new DefaultListAdapterGeneric<>(objArray,
- values,
- isSelectableList,
- itemClick,
- (ArrayList) selectedItems,
- listItemBgRes,
- listItemBgResSelected,
- listItemTextColor,
- listItemBgColor,
- listItemBgColorSelected);
- hasAdapter = true;
- return this;
-
- }
-
-
- /**
- * Set items for a list, String value of an object for use in a list and ListItemClick event
- *
- * @param arrayList {@link ArrayList} of {@link Object}
- * @param value {@link ListItemValue} for getting String value of an object
- * @param itemClick ListItemClick event
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(ArrayList arrayList, ListItemValue value, @Nullable ListItemClickObj itemClick) {
-
- if (hasAdapter)
- throw tooManyAdapters;
-
- if (!isSelectableList && itemClick == null)
- throw nullListItemClick(ListItemClickObj.class);
-
- checkListsSize(arrayList.size());
-
- adapter = new DefaultListAdapterGeneric<>(arrayList,
- value,
- isSelectableList,
- itemClick,
- (ArrayList) selectedItems,
- listItemBgRes,
- listItemBgResSelected,
- listItemTextColor,
- listItemBgColor,
- listItemBgColorSelected);
- hasAdapter = true;
- return this;
- }
-
- /**
- * Set items for a list, String values of an object for use in a list and ListItemClick event
- *
- * @param arrayList {@link ArrayList} of {@link Object}
- * @param values {@link ListItemValues} for getting String values of an object. {@link ListItemValues#getValue1(Object)}
- * for first value and {@link ListItemValues#getValue1(Object)} for second value
- * @param itemClick ListItemClick event
- * @param Type of an Object
- * @return current class
- * @since 1.5
- */
- public ListDialog setItems(ArrayList arrayList, ListItemValues values, @Nullable ListItemClickObj itemClick) {
-
- if (hasAdapter)
- throw tooManyAdapters;
-
- if (!isSelectableList && itemClick == null)
- throw nullListItemClick(ListItemClickObj.class);
-
- checkListsSize(arrayList.size());
-
- adapter = new DefaultListAdapterGeneric<>(arrayList,
- values,
- isSelectableList,
- itemClick,
- (ArrayList) selectedItems,
- listItemBgRes,
- listItemBgResSelected,
- listItemTextColor,
- listItemBgColor,
- listItemBgColorSelected);
- hasAdapter = true;
- return this;
- }
-
- /**
- * Set image items for a list
- * @param arrayList {@link ArrayList} of {@link ImageListItem}
- * @return current class
- * @since 1.6
- */
- public ListDialog setImageItems(ArrayList arrayList) {
- return setImageItems(arrayList, null);
- }
-
- /**
- * Set image items for a list and ListItemClick event
- * @param arrayList {@link ArrayList} of {@link ImageListItem}
- * @param itemClick ListItemClick event
- * @return current class
- * @since 1.6
- */
- public ListDialog setImageItems(ArrayList arrayList, @Nullable ListItemClickObj itemClick) {
-
- if (hasAdapter)
- throw tooManyAdapters;
-
- if (!isSelectableList && itemClick == null)
- throw nullListItemClick(ListItemClickObj.class);
-
- checkListsSize(arrayList.size());
-
- adapter = new DefaultImageListAdapter(arrayList,
- isSelectableList,
- itemClick,
- (ArrayList) selectedItems,
- listItemBgRes,
- listItemBgResSelected,
- listItemTextColor,
- listItemBgColor,
- listItemBgColorSelected);
-
- hasAdapter = true;
- waitForLayoutManager = true;
- listRV.post(() -> {
- int maxItemCount = listRV.getWidth() / functions.dpToPixels(context,80);
- if (maxItemCount == 0)
- maxItemCount = 1;
- setLayoutManager(new GridLayoutManager(context, arrayList.size()!=0 ? Math.min(maxItemCount, arrayList.size()):1));
- listRV.setLayoutManager(layoutManager);
- waitForLayoutManager = false;
- });
-
- return this;
- }
-
- /**
- * Set a list adapter
- *
- * @param adapter RecycleView {@link RecyclerView.Adapter adapter}
- * @return current class
- * @since 1.5
- */
- public ListDialog setAdapter(RecyclerView.Adapter> adapter) {
- if (hasAdapter)
- throw tooManyAdapters;
- this.adapter = adapter;
- hasAdapter = true;
- return this;
- }
-
- /**
- * @param layoutManager {@link RecyclerView.LayoutManager LayoutManager }
- * @return current class
- * @since 1.6
- */
- public ListDialog setLayoutManager(RecyclerView.LayoutManager layoutManager) {
- this.layoutManager = layoutManager;
- return this;
- }
-
- /**
- * Get a list adapter
- *
- * @return current class
- * @since 1.5
- */
- public RecyclerView.Adapter> getListAdapter() {
- return adapter;
- }
-
-
- /**
- * @return Background resource for views in RecycleView
- * @since 1.5
- */
- public int getListItemBgRes() {
- return listItemBgRes;
- }
-
- /**
- * @return Background resource for selected views in RecycleView
- * @since 1.5
- */
- public int getListItemBgResSelected() {
- return listItemBgResSelected;
- }
-
- /**
- * Create list with multi selectable items. Use {@link #getSelectedItems()} fet getting selected items
- *
- * @return current class
- * @since 1.5
- */
- public ListDialog setSelectableList() {
- isSelectableList = true;
- return this;
- }
-
- public boolean isSelectableList() {
- return isSelectableList;
- }
-
- @Override
- public ListDialog setOnTouchListener(View.OnTouchListener onTouchListener) {
- super.setOnTouchListener(onTouchListener);
- return this;
- }
-
- @Override
- public ListDialog swipeToDismiss(boolean isSwipeToDismiss) {
- super.swipeToDismiss(isSwipeToDismiss);
- return this;
- }
-
- /**
- * Get selected items in a list
- *
- * @return ArrayList of selected items in a list
- * @since 1.5
- */
- public ArrayList getSelectedItems() {
- return (ArrayList) selectedItems;
- }
-
- void checkListsSize(int size) {
-
- if (hideEmptyListTxt) {
- emptyListTxt.setVisibility(View.GONE);
- return;
- }
- emptyListTxt.setVisibility((size > 0) ? View.GONE : View.VISIBLE);
-
-
- }
-
- @SuppressWarnings("rawtypes")
- private NullPointerException nullListItemClick(Class className) {
- return new NullPointerException(
- String.format("%s is null. Set %s event or use setSelectableList() for selecting multiple item in a list",
- className.getSimpleName(),
- className.getSimpleName())
- );
-
- }
-
- private final UnsupportedOperationException tooManyAdapters = new UnsupportedOperationException("Too many Adapters for RecyclerView");
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemImageValue.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemImageValue.java
deleted file mode 100644
index 79e121f..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemImageValue.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.graphics.drawable.Drawable;
-
-public interface ListItemImageValue {
- /**
- * Get String value of an Object for using in a list
- * @param obj Current Object for getting first String value of it
- * @return String value
- */
- String getTitle(T obj);
-
- /**
- * Get Drawable value of an Object for use in a list item
- * @param obj Current Object for getting second String value of it
- * @return Drawable
- */
- Drawable getImage(T obj);
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemValue.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemValue.java
deleted file mode 100644
index 5d437ef..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemValue.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.sjapps.library.customdialog;
-
-public interface ListItemValue {
- /**
- * Get String value of an Object for using in a list
- * @param obj Current Object for getting String value of it
- * @return String value
- */
- String getValue(T obj);
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemValues.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemValues.java
deleted file mode 100644
index 74780bf..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/ListItemValues.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.sjapps.library.customdialog;
-
-public interface ListItemValues {
- /**
- * Get String value of an Object for use in the first value of a list item
- * @param obj Current Object for getting first String value of it
- * @return String value
- */
- String getValue1(T obj);
-
- /**
- * Get String value of an Object for use in the second value of a list item
- * @param obj Current Object for getting second String value of it
- * @return String value
- */
- String getValue2(T obj);
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/MessageDialog.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/MessageDialog.java
deleted file mode 100644
index 8dc7c2f..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/MessageDialog.java
+++ /dev/null
@@ -1,270 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.content.Context;
-import android.view.View;
-import android.widget.Button;
-import android.widget.TextView;
-
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.StyleRes;
-
-import com.sjapps.library.R;
-/**@since 1.3*/
-@SuppressWarnings("unused")
-public class MessageDialog extends SJDialog{
-
- private boolean isErrorDialog;
-
- public MessageDialog(){
- onlyOneButton = true;
- }
-
- public MessageDialog Builder(Context context){
- super.Builder(context,R.layout.message_dialog);
- onButtonClick(() -> dialog.dismiss());
- return this;
- }
- public MessageDialog Builder(Context context,@StyleRes int theme){
- super.Builder(context,R.layout.message_dialog,theme, false);
- onButtonClick(() -> dialog.dismiss());
- return this;
- }
- public MessageDialog Builder(Context context,boolean useAppTheme){
- super.Builder(context,R.layout.message_dialog,useAppTheme);
- onButtonClick(() -> dialog.dismiss());
- return this;
- }
- public MessageDialog ErrorDialogBuilder(Context context){
- return Builder(context).errorDialogAttributes();
- }
- public MessageDialog ErrorDialogBuilder(Context context,@StyleRes int theme){
- return Builder(context,theme).errorDialogAttributes();
- }
- public MessageDialog ErrorDialogBuilder(Context context,boolean useAppTheme){
- return Builder(context,useAppTheme).errorDialogAttributes();
- }
-
- private MessageDialog errorDialogAttributes(){
- isErrorDialog = true;
- return setDialogBackgroundResource(R.drawable.dialog_background_material3_red)
- .setTextColor(context.getResources().getColor(R.color.SJDialog_ErrorTextColor, context.getTheme()))
- .setButtonColor(MATERIAL3_RED_BUTTON)
- .setTitle("Error");
- }
-
- /**{@inheritDoc}
- * @since 1.5*/
- @Override
- public MessageDialog setOldTheme(){
- super.setOldTheme();
- if (isErrorDialog) {
- setDialogBackgroundResource(R.drawable.dialog_background_red);
- setTextColor(defaultOldColorWhite);
- setButtonColor(defaultOldColorWhite);
- setButtonTextColor(defaultOldColorBlack);
- }
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public MessageDialog setTitle(String title){
- super.setTitle(title);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public MessageDialog setMessage(String message) {
- super.setMessage(message);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public MessageDialog setTitleAlignment(int textAlignment) {
- super.setTitleAlignment(textAlignment);
- return this;
- }
-
- /**
- * {@inheritDoc}
- * @since 1.6
- * */
- @Override
- public MessageDialog setMessageAlignment(int textAlignment) {
- super.setMessageAlignment(textAlignment);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public MessageDialog setTextColor(int color) {
- super.setTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public MessageDialog setTitleTextColor(int color) {
- super.setTitleTextColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public MessageDialog setMessageTextColor(int color) {
- super.setMessageTextColor(color);
- return this;
- }
-
- /**
- * Set a button text.
- * @param text button text
- * @return current class
- * @since 1.4
- * */
- public MessageDialog setButtonText(String text){
- super.setLeftButtonText(text);
- return this;
- }
-
- /**
- * Set button text color.
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.4
- * */
- public MessageDialog setButtonTextColor(@ColorInt int color){
- super.setLeftButtonTextColor(color);
- return this;
- }
-
- /**
- * Set button color.
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.4
- * */
- public MessageDialog setButtonColor(@ColorInt int color){
- super.setLeftButtonColor(color);
- return this;
- }
-
- @Override
- public MessageDialog setButtonColor(@ButtonColor String color){
- super.setButtonColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public MessageDialog setDialogBackgroundColor(int color) {
- super.setDialogBackgroundColor(color);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public MessageDialog setDialogBackgroundResource(@DrawableRes int drawable){
- super.setDialogBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set background resource for button.
- * @param drawable resource id
- * @return current class
- * @since 1.3
- * */
- public MessageDialog setButtonBackgroundResource(@DrawableRes int drawable){
- super.setLeftButtonBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set onClick listener for a button
- * @param dialogButtonEvent dialog button events
- * @return current class
- * */
- @Override
- public MessageDialog onButtonClick(DialogButtonEvent dialogButtonEvent){
- super.onLeftButtonClick(dialogButtonEvent);
- return this;
- }
-
- @Override
- protected void setButtons() {
- setButton1(R.id.btn);
- }
-
- public Button getButton() {
- return super.getLeftButton();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getTitleTextView() {
- return super.getTitleTextView();
- }
-
- /**@since 1.6*/
- @Override
- public TextView getMessageTextView() {
- return super.getMessageTextView();
- }
-
- /**{@inheritDoc}
- * @since 1.4*/
- @Override
- public MessageDialog setMaxDialogWidth(int maxDialogWidth){
- super.setMaxDialogWidth(maxDialogWidth);
- return this;
- }
-
- @Override
- public MessageDialog setDialogAnimations(int styleRes) {
- super.setDialogAnimations(styleRes);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.3*/
- @Override
- public MessageDialog show(){
- super.show();
- return this;
- }
-
- @Override
- protected int setButtonsRootLayoutID() {
- return R.id.buttonRoot;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public MessageDialog setOnTouchListener(View.OnTouchListener onTouchListener) {
- super.setOnTouchListener(onTouchListener);
- return this;
- }
-
- /**{@inheritDoc}
- * @since 1.6*/
- @Override
- public MessageDialog swipeToDismiss(boolean isSwipeToDismiss) {
- super.swipeToDismiss(isSwipeToDismiss);
- return this;
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/SJDialog.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/SJDialog.java
deleted file mode 100644
index 947e33c..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/SJDialog.java
+++ /dev/null
@@ -1,744 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.annotation.SuppressLint;
-import android.app.Dialog;
-import android.content.Context;
-import android.graphics.Color;
-import android.graphics.drawable.ColorDrawable;
-import android.view.ContextThemeWrapper;
-import android.view.Gravity;
-import android.view.LayoutInflater;
-import android.view.View;
-
-import android.widget.Button;
-import android.widget.LinearLayout;
-import android.widget.TextView;
-
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.IdRes;
-import androidx.annotation.IntDef;
-import androidx.annotation.LayoutRes;
-import androidx.annotation.StringDef;
-import androidx.annotation.StyleRes;
-
-import com.sjapps.library.R;
-
-@SuppressWarnings({"unused", "UnusedReturnValue"})
-public abstract class SJDialog {
-
- public static final String RED_BUTTON = "RedBtn";
- public static final String MATERIAL3_RED_BUTTON = "Material3RedBtn";
- public static final String OLD_BUTTON_COLOR = "OldBtnColor";
- /** Sets text alignment to {@link View#TEXT_ALIGNMENT_VIEW_START}
- * @since 1.6
- * */
- public static final int TEXT_ALIGNMENT_LEFT = View.TEXT_ALIGNMENT_VIEW_START;
- /** Sets text alignment to {@link View#TEXT_ALIGNMENT_VIEW_END}
- * @since 1.6
- * */
- public static final int TEXT_ALIGNMENT_RIGHT = View.TEXT_ALIGNMENT_VIEW_END;
- /** Sets text alignment to {@link View#TEXT_ALIGNMENT_CENTER}
- * @since 1.6
- * */
- public static final int TEXT_ALIGNMENT_CENTER = View.TEXT_ALIGNMENT_CENTER;
-
- private @LayoutRes int Btn1Resource = R.layout.button_template;
- private @LayoutRes int Btn2Resource = R.layout.button_template;
-
- @ColorInt int defaultOldThemeTextColor;
- @ColorInt int defaultOldColorWhite = 0xFFE5E5E5;
- @ColorInt int defaultOldColorBlack = 0xFF333333;
-
- private final int defaultTheme = R.style.Theme_SJDialog;
- private int newTheme = -1;
- private boolean usesDefaultTheme = true;
- private boolean isSwipeToDismiss = true;
- private boolean isDefaultOnTouchListener = true;
- private View.OnTouchListener dialogOnTouchListener = null;
-
- public Dialog dialog;
- protected Button button1, button2;
- private LinearLayout background;
- private int maxDialogWidth = 600;
- Context context;
-
- DialogButtonEvent dialogButtonEvent;
- DialogButtonEvents dialogButtonEvents;
-
- @StringDef({RED_BUTTON, MATERIAL3_RED_BUTTON, OLD_BUTTON_COLOR})
- public @interface ButtonColor {
- }
-
- @IntDef({TEXT_ALIGNMENT_LEFT, TEXT_ALIGNMENT_RIGHT, TEXT_ALIGNMENT_CENTER})
- public @interface TextAlignment {
- }
-
- protected boolean onlyOneButton = false;
- protected boolean twoButtons = false;
- private boolean leftBtnOnClick = false;
-
- protected SJDialog Builder(Context context, @LayoutRes int layoutResID) {
- Builder(context, layoutResID, defaultTheme, false);
- return this;
- }
-
- protected SJDialog Builder(Context context, @LayoutRes int layoutResID, boolean useAppTheme) {
- Builder(context, layoutResID, defaultTheme, useAppTheme);
- return this;
- }
-
- protected SJDialog Builder(Context context, @LayoutRes int layoutResID, @StyleRes int theme, boolean useAppTheme) {
- this.context = context;
- defaultOldThemeTextColor = context.getResources().getColor(R.color.SJDialog_OldThemeTextColor, context.getTheme());
- dialog = useAppTheme ?
- new Dialog(new ContextThemeWrapper(context, context.getTheme())) :
- new Dialog(new ContextThemeWrapper(context, theme));
- setContentView(layoutResID);
- setDialogSize();
- dialog.getWindow().getAttributes().gravity = Gravity.BOTTOM;
- dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
- dialog.getWindow().getAttributes().windowAnimations = R.style.SJDialogAnimation;
- background = dialog.findViewById(R.id.dialogBackground);
- setButtons();
- if (theme != defaultTheme || useAppTheme) {
- usesDefaultTheme = false;
- newTheme = !useAppTheme ? theme : -1;
- regenerateButtons();
- }
- return this;
- }
-
- protected void setDialogSize() {
- if (context == null)
- throw new NullPointerException("context is null");
- if (dialog == null) {
- throw new NullPointerException("dialog is null");
- }
- functions.SetDialogSize(context, dialog, maxDialogWidth);
- }
-
-
- /**
- * By default dialog colors will be set to material3 dynamic colors.
- * With this method you can set the dialog color for the background
- * and buttons to the older non-dynamic colors
- *
- * @return current class
- * @since 1.5
- */
- protected SJDialog setOldTheme() {
- setButtonsColor(OLD_BUTTON_COLOR);
- setDialogBackgroundResource(R.drawable.dialog_background_old);
- setTextColor(defaultOldThemeTextColor);
- return this;
- }
-
- /**
- * Set a dialog title.
- *
- * @param title title of a dialog
- * @return current class
- * @since 1.3
- */
- protected SJDialog setTitle(String title) {
- TextView TitleTv = getTitleTextView();
- TitleTv.setText(title);
- return this;
- }
-
- /**
- * Set a dialog message.
- *
- * @param message message of a dialog
- * @return current class
- * @since 1.3
- */
- protected SJDialog setMessage(String message) {
- TextView msg = getMessageTextView();
- msg.setText(message);
- msg.setVisibility(View.VISIBLE);
- return this;
- }
-
- /**
- * Set the text alignment for Title TextView. Default is set to {@link SJDialog#TEXT_ALIGNMENT_CENTER}
- * @param textAlignment The text alignment to set. Supported types: {@link SJDialog#TEXT_ALIGNMENT_LEFT}, {@link SJDialog#TEXT_ALIGNMENT_RIGHT} and {@link SJDialog#TEXT_ALIGNMENT_CENTER}
- * @return current class
- * @since 1.6
- * */
- protected SJDialog setTitleAlignment(@TextAlignment int textAlignment){
- TextView title = getTitleTextView();
- title.setGravity(Gravity.RIGHT);
- title.setTextAlignment(textAlignment);
-
- return this;
- }
-
- /**
- * Set the text alignment for Message TextView. Default is set to {@link SJDialog#TEXT_ALIGNMENT_LEFT}
- * @param textAlignment The text alignment to set. Supported types: {@link SJDialog#TEXT_ALIGNMENT_LEFT}, {@link SJDialog#TEXT_ALIGNMENT_RIGHT} and {@link SJDialog#TEXT_ALIGNMENT_CENTER}
- * @return current class
- * @since 1.6
- * */
- protected SJDialog setMessageAlignment(@TextAlignment int textAlignment){
- TextView msg = getMessageTextView();
- msg.setTextAlignment(textAlignment);
- return this;
- }
-
- /**
- * Set text color.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.6
- */
- protected SJDialog setTextColor(@ColorInt int color) {
- setTitleTextColor(color);
- setMessageTextColor(color);
- return this;
- }
-
- /**
- * Set title text color.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.6
- */
- protected SJDialog setTitleTextColor(@ColorInt int color) {
- getTitleTextView().setTextColor(color);
- return this;
- }
-
- /**
- * Set message text color.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.6
- */
- protected SJDialog setMessageTextColor(@ColorInt int color) {
- getMessageTextView().setTextColor(color);
- return this;
- }
-
- /**
- * Set a text to left button.
- *
- * @param text button text
- * @return current class
- * @since 1.4
- */
- protected SJDialog setLeftButtonText(String text) {
- button1.setText(text);
- return this;
- }
-
- /**
- * Set a text to right button.
- *
- * @param text button text
- * @return current class
- * @since 1.4
- */
- protected SJDialog setRightButtonText(String text) {
- if (!twoButtons)
- throw OneButtonException();
- button2.setText(text);
- return this;
- }
-
- /**
- * Set text color for all buttons.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.4
- */
- protected SJDialog setButtonsTextColor(@ColorInt int color) {
- button1.setTextColor(color);
- if (twoButtons)
- button2.setTextColor(color);
- return this;
- }
-
- /**
- * Set text color for left button.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.4
- */
- protected SJDialog setLeftButtonTextColor(@ColorInt int color) {
- button1.setTextColor(color);
- return this;
- }
-
- /**
- * Set text color for right button.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.4
- */
- protected SJDialog setRightButtonTextColor(@ColorInt int color) {
- if (!twoButtons)
- throw OneButtonException();
- button2.setTextColor(color);
- return this;
- }
-
- /**
- * Set background color for all buttons.
- *
- * @param color Color to use for tinting buttons
- * @return current class
- * @since 1.4
- */
- protected SJDialog setButtonsColor(@ColorInt int color) {
- checkButtonResource(0);
- button1.getBackground().setTint(color);
- if (twoButtons) {
- checkButtonResource(1);
- button2.getBackground().setTint(color);
- }
- return this;
- }
-
- /**
- * Set background color for left button.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.4
- */
- protected SJDialog setLeftButtonColor(@ColorInt int color) {
- checkButtonResource(0);
- button1.getBackground().setTint(color);
- return this;
- }
-
- /**
- * Set background color for right button.
- *
- * @param color Color to use for tinting this drawable
- * @return current class
- * @since 1.4
- */
- protected SJDialog setRightButtonColor(@ColorInt int color) {
- if (!twoButtons)
- throw OneButtonException();
-
- checkButtonResource(1);
- button2.getBackground().setTint(color);
- return this;
- }
-
- protected SJDialog setButtonColor(@ButtonColor String color) {
- checkButtonResource(0);
- setLeftButtonColor(color);
- return this;
- }
-
- protected SJDialog setButtonsColor(@ButtonColor String color) {
- setLeftButtonColor(color);
- if (twoButtons)
- setRightButtonColor(color);
-
- return this;
- }
-
- protected SJDialog setLeftButtonColor(@ButtonColor String color) {
- checkButtonResource(0);
- switch (color) {
- case RED_BUTTON:
- setLeftButtonBackgroundResource(R.drawable.ripple_button_red);
- setLeftButtonTextColor(Color.WHITE);
- break;
- case MATERIAL3_RED_BUTTON:
- setLeftButtonBackgroundResource(R.drawable.ripple_button_material3_red);
- setLeftButtonTextColor(context.getResources().getColor(R.color.md_theme_onError, context.getTheme()));
- break;
- case OLD_BUTTON_COLOR:
- setLeftButtonBackgroundResource(R.drawable.ripple_button_old);
- setLeftButtonTextColor(Color.WHITE);
- break;
- default:
- throw new IllegalArgumentException(color + " is not a valid argument");
- }
- return this;
- }
-
- protected SJDialog setRightButtonColor(@ButtonColor String color) {
- if (!twoButtons)
- throw OneButtonException();
- checkButtonResource(1);
- switch (color) {
- case RED_BUTTON:
- setRightButtonBackgroundResource(R.drawable.ripple_button_red);
- setRightButtonTextColor(Color.WHITE);
- break;
- case MATERIAL3_RED_BUTTON:
- setRightButtonBackgroundResource(R.drawable.ripple_button_material3_red);
- setRightButtonTextColor(context.getResources().getColor(R.color.md_theme_onError, context.getTheme()));
- break;
- case OLD_BUTTON_COLOR:
- setRightButtonBackgroundResource(R.drawable.ripple_button_old);
- setRightButtonTextColor(Color.WHITE);
-
- break;
- default:
- throw new IllegalArgumentException(color + " is not a valid argument");
- }
- return this;
- }
-
-
- /**
- * Change dialog color
- * @param color {@link ColorInt}
- * @return current class
- * @since 1.6
- */
- protected SJDialog setDialogBackgroundColor(@ColorInt int color){
- background.getBackground().mutate().setTint(color);
- return this;
- }
-
- /**
- * Set background resource for dialog.
- *
- * @param drawable resource id
- * @return current class
- * @since 1.3
- */
- protected SJDialog setDialogBackgroundResource(@DrawableRes int drawable) {
- background.setBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set background resource for all buttons.
- *
- * @param drawable resource id
- * @return current class
- * @since 1.3
- */
- protected SJDialog setButtonsBackgroundResource(@DrawableRes int drawable) {
- checkButtonResource(0);
- button1.setBackgroundResource(drawable);
- if (twoButtons) {
- checkButtonResource(1);
- button2.setBackgroundResource(drawable);
- }
- return this;
- }
-
- /**
- * Set background resource for left button.
- *
- * @param drawable resource id
- * @return current class
- * @since 1.3
- */
- protected SJDialog setLeftButtonBackgroundResource(@DrawableRes int drawable) {
- checkButtonResource(0);
- button1.setBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set background resource for right button.
- *
- * @param drawable resource id
- * @return current class
- * @since 1.3
- */
- protected SJDialog setRightButtonBackgroundResource(@DrawableRes int drawable) {
- if (!twoButtons)
- throw OneButtonException();
-
- checkButtonResource(1);
- button2.setBackgroundResource(drawable);
- return this;
- }
-
- /**
- * Set onClick listener for right button
- *
- * @param dialogButtonEvent dialog button events
- * @return current class
- * @since 1.0
- */
- protected SJDialog onButtonClick(DialogButtonEvent dialogButtonEvent) {
- leftBtnOnClick = false;
- this.dialogButtonEvent = dialogButtonEvent;
-
- return this;
- }
-
- /**
- * Set onClick listener for both buttons
- *
- * @param dialogButtonEvents dialog button events
- * @return current class
- * @since 1.0
- */
- protected SJDialog onButtonClick(DialogButtonEvents dialogButtonEvents) {
- this.dialogButtonEvents = dialogButtonEvents;
-
- return this;
- }
-
- /**
- * Set onClick listener for left button
- *
- * @param dialogButtonEvent dialog button event
- * @return current class
- */
- protected SJDialog onLeftButtonClick(DialogButtonEvent dialogButtonEvent) {
- leftBtnOnClick = true;
- this.dialogButtonEvent = dialogButtonEvent;
-
- return this;
- }
-
- /**
- * Creating dialog with two buttons. Use this method before changing buttons attributes
- * @since 1.5
- */
- protected SJDialog dialogWithTwoButtons() {
- twoButtons = true;
- return this;
- }
-
- /**
- * show dialog
- * @since 1.3
- */
- protected SJDialog show() {
- setDialogTouchListener();
- addOnClickListener();
- dialog.show();
- return this;
- }
-
- private void addOnClickListener() {
- if (dialogButtonEvents == null && dialogButtonEvent == null)
- return;
-
- if (dialogButtonEvents != null) {
- button1.setOnClickListener(v -> dialogButtonEvents.onLeftButtonClick());
- button2.setOnClickListener(v -> dialogButtonEvents.onRightButtonClick());
- return;
- }
-
- if (!twoButtons) {
- button1.setOnClickListener(v -> dialogButtonEvent.onButtonClick());
- return;
- }
-
- if (leftBtnOnClick) {
- button1.setOnClickListener(v -> dialogButtonEvent.onButtonClick());
- return;
- }
-
- button1.setOnClickListener(v -> dismiss());
- button2.setOnClickListener(v -> dialogButtonEvent.onButtonClick());
- }
-
- /**
- * dismiss dialog
- * @since 1.3
- */
- public void dismiss() {
- dialog.dismiss();
- }
-
- private void setContentView(@LayoutRes int layoutResID) {
- dialog.setContentView(layoutResID);
- }
-
- protected void setButton1(@IdRes int id) {
- this.button1 = dialog.findViewById(id);
- }
-
- protected void setButton2(@IdRes int id) {
- this.button2 = dialog.findViewById(id);
- }
-
- protected abstract @IdRes int setButtonsRootLayoutID();
-
- protected abstract void setButtons();
-
-
- private void regenerateButtons() {
- LinearLayout buttons = dialog.findViewById(setButtonsRootLayoutID());
- regenerateLeftBtn(buttons);
- if (onlyOneButton) {
- return;
- }
- regenerateRightBtn(buttons);
- }
-
- @SuppressLint("SetTextI18n")
- private void regenerateLeftBtn(LinearLayout buttons) {
- if (buttons == null)
- buttons = dialog.findViewById(setButtonsRootLayoutID());
-
- String txt = button1.getText().toString();
- buttons.removeView(button1);
- button1 = (Button) LayoutInflater
- .from(newTheme != -1 ? new ContextThemeWrapper(context, newTheme) : context)
- .inflate(Btn1Resource,buttons,false);
- button1.setText(txt);
- buttons.addView(button1, 0);
- }
-
- @SuppressLint("SetTextI18n")
- private void regenerateRightBtn(LinearLayout buttons) {
- if (buttons == null)
- buttons = dialog.findViewById(setButtonsRootLayoutID());
-
- int btn2Visibility = button2.getVisibility();
- String txt = button2.getText().toString();
- buttons.removeView(button2);
- button2 = (Button) LayoutInflater
- .from(newTheme != -1 ? new ContextThemeWrapper(context, newTheme) : context)
- .inflate(Btn2Resource,buttons,false);
- button2.setVisibility(btn2Visibility);
- LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) button2.getLayoutParams();
- params.setMarginStart(functions.dpToPixels(context,10));
- button2.setLayoutParams(params);
- button2.setText(txt);
- buttons.addView(button2, 1);
- }
-
- private void checkButtonResource(int i) {
- if (usesDefaultTheme)
- return;
-
- if (i == 0) {
- if (Btn1Resource == R.layout.button_template) {
- Btn1Resource = R.layout.button_template_1;
- regenerateLeftBtn(null);
- }
- return;
- }
- if (i == 1) {
- if (Btn2Resource == R.layout.button_template) {
- Btn2Resource = R.layout.button_template_1;
- regenerateRightBtn(null);
- }
- }
- }
-
- protected void setButton2Visibility(int visibility) {
- button2.setVisibility(visibility);
- }
-
- protected TextView getTitleTextView() {
- return dialog.findViewById(R.id.titleText);
- }
-
- protected TextView getMessageTextView() {
- return dialog.findViewById(R.id.messageTxt);
- }
-
- protected Button getLeftButton() {
- return button1;
- }
-
- protected Button getRightButton() {
- return button2;
- }
-
- public int getMaxDialogWidth() {
- return this.maxDialogWidth;
- }
-
- /**
- * Set the maximum width for dialog
- *
- * @param maxDialogWidth set value for {@link #maxDialogWidth}. Default is 600dp
- * @return current class
- * @since 1.4
- */
- protected SJDialog setMaxDialogWidth(int maxDialogWidth) {
- this.maxDialogWidth = maxDialogWidth;
- setDialogSize();
- return this;
- }
-
-
- /**
- * Set animation for a dialog
- *
- * @param styleRes style resource
- * @return current class
- * @since 1.5
- */
- protected SJDialog setDialogAnimations(@StyleRes int styleRes) {
- dialog.getWindow().getAttributes().windowAnimations = styleRes;
- return this;
- }
-
- /**
- * Enable or disable swipe down to dismiss dialog. Default is set to true
- *
- * @param isSwipeToDismiss Enable or disable swipe action
- * @return current class
- * @since 1.6
- */
- protected SJDialog swipeToDismiss(boolean isSwipeToDismiss){
- this.isSwipeToDismiss = isSwipeToDismiss;
- return this;
- }
-
- /**
- * Set dialog OnTouchListener. by default is set to {@link SwipeDismissTouchListener}.
- * If this method is used, swipe to dismiss will not work.
- *
- * @param onTouchListener onTouchListener for dialog view
- * @return current class
- * @since 1.6
- */
- protected SJDialog setOnTouchListener(View.OnTouchListener onTouchListener) {
- dialogOnTouchListener = onTouchListener;
- isDefaultOnTouchListener = false;
- return this;
- }
-
- private void setDialogTouchListener() {
-
- if (isDefaultOnTouchListener)
- dialogOnTouchListener = new SwipeDismissTouchListener(
- dialog.getWindow().getDecorView(),
- new SwipeDismissTouchListener.DismissCallbacks() {
- @Override
- public boolean canDismiss() {
- return isSwipeToDismiss;
- }
-
- @Override
- public void onDismiss(View view) {
- dialog.dismiss();
- }
- }
- );
-
- dialog.getWindow().getDecorView().setOnTouchListener(dialogOnTouchListener);
- }
-
- private OneButtonException OneButtonException() {
- return new OneButtonException("Trying to access right button when dialog has only one button. Use 'dialogWithTwoButtons()' to fix the problem.");
- }
-}
-
-class OneButtonException extends RuntimeException {
- public OneButtonException(String message) {
- super(message);
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/SetupDialog.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/SetupDialog.java
deleted file mode 100644
index c0fe490..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/SetupDialog.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.sjapps.library.customdialog;
-/**
- * by SlaVcE
- * Setting up custom dialog.
- * @deprecated SetupDialog is renamed to BasicDialog. Use {@link BasicDialog} instead.
- * @since 1.0
- */
-@Deprecated(since = "1.6")
-public class SetupDialog extends BasicDialog{ }
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/SwipeDismissTouchListener.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/SwipeDismissTouchListener.java
deleted file mode 100644
index af14862..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/SwipeDismissTouchListener.java
+++ /dev/null
@@ -1,216 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.animation.Animator;
-import android.animation.AnimatorListenerAdapter;
-import android.animation.ValueAnimator;
-import android.annotation.SuppressLint;
-import android.view.MotionEvent;
-import android.view.VelocityTracker;
-import android.view.View;
-import android.view.ViewConfiguration;
-import android.view.ViewGroup;
-
-
-public class SwipeDismissTouchListener implements View.OnTouchListener {
- private final int mSlop;
- private final long mAnimationTime;
-
- // Fixed properties
- private final View mView;
- private final DismissCallbacks mCallbacks;
- private int mViewHeight = 1; // 1 and not 0 to prevent dividing by zero
-
- // Transient properties
- private float mDownX;
- private float mDownY;
- private boolean mSwiping;
- private int mSwipingSlop;
- private VelocityTracker mVelocityTracker;
- private float mTranslationY;
-
- /**
- * The callback interface used by {@link SwipeDismissTouchListener} to inform its client
- * about a successful dismissal of the view for which it was created.
- */
- public interface DismissCallbacks {
- /**
- * Called to determine whether the view can be dismissed.
- */
- boolean canDismiss();
-
- /**
- * Called when the user has indicated they she would like to dismiss the view.
- *
- * @param view The originating {@link android.view.View} to be dismissed.
- */
- void onDismiss(View view);
- }
-
- /**
- * Constructs a new swipe-to-dismiss touch listener for the given view.
- *
- * @param view The view to make dismissable.
- * @param callbacks The callback to trigger when the user has indicated that would like to
- * dismiss this view.
- */
- public SwipeDismissTouchListener(View view, DismissCallbacks callbacks) {
- ViewConfiguration vc = ViewConfiguration.get(view.getContext());
- mSlop = vc.getScaledTouchSlop();
- mAnimationTime = view.getContext().getResources().getInteger(android.R.integer.config_shortAnimTime);
- mView = view;
- mCallbacks = callbacks;
- }
- @SuppressLint("ClickableViewAccessibility")
- @Override
- public boolean onTouch(View view, MotionEvent motionEvent) {
- // offset because the view is translated during swipe
- motionEvent.offsetLocation(0, mTranslationY);
-
- boolean returnTrue = false;
-
- if (mViewHeight < 2) {
- mViewHeight = mView.getHeight();
- }
-
- switch (motionEvent.getActionMasked()) {
- case MotionEvent.ACTION_DOWN: {
- // TODO: ensure this is a finger, and set a flag
- mDownX = motionEvent.getRawX();
- mDownY = motionEvent.getRawY();
- if (mCallbacks.canDismiss()) {
- mVelocityTracker = VelocityTracker.obtain();
- mVelocityTracker.addMovement(motionEvent);
- }
- return true;
- }
-
- case MotionEvent.ACTION_UP: {
- if (mVelocityTracker == null) {
- break;
- }
-
- float deltaY = motionEvent.getRawY() - mDownY;
- mVelocityTracker.addMovement(motionEvent);
- mVelocityTracker.computeCurrentVelocity(1000);
-
- boolean dismiss = false;
- boolean dismissDown = false;
- if (deltaY > (float) mViewHeight / 2 && mSwiping) {
- dismiss = true;
- dismissDown = deltaY > 0;
- returnTrue = true;
- } else if (Math.abs(deltaY) > 0){
- returnTrue = true;
- }
- if (dismiss) {
- // dismiss
- mView.animate()
- .translationY(dismissDown ? mViewHeight : 0)
- .alpha(0)
- .setDuration(mAnimationTime)
- .setListener(new AnimatorListenerAdapter() {
- @Override
- public void onAnimationEnd(Animator animation) {
- performDismiss();
- }
- });
-
- } else if (mSwiping) {
- // cancel
-
- mView.animate()
- .translationY(0)
- .alpha(1)
- .setDuration(mAnimationTime)
- .setListener(null);
- }
- mVelocityTracker.recycle();
- mVelocityTracker = null;
- mTranslationY = 0;
- mDownX = 0;
- mDownY = 0;
- mSwiping = false;
- break;
- }
-
- case MotionEvent.ACTION_CANCEL: {
- if (mVelocityTracker == null) {
- break;
- }
- mView.animate()
- .translationY(0)
- .alpha(1)
- .setDuration(mAnimationTime)
- .setListener(null);
- mVelocityTracker.recycle();
- mVelocityTracker = null;
- mTranslationY = 0;
- mDownX = 0;
- mDownY = 0;
- mSwiping = false;
- break;
- }
-
- case MotionEvent.ACTION_MOVE: {
- if (mVelocityTracker == null) {
- break;
- }
- mVelocityTracker.addMovement(motionEvent);
- float deltaX = motionEvent.getRawX() - mDownX;
- float deltaY = motionEvent.getRawY() - mDownY;
- if (Math.abs(deltaY) > mSlop && Math.abs(deltaX) < Math.abs(deltaY) / 2) {
- mSwiping = true;
- mSwipingSlop = (deltaY > 0 ? mSlop : 0);
- mView.getParent().requestDisallowInterceptTouchEvent(true);
-
-
- MotionEvent cancelEvent = MotionEvent.obtain(motionEvent);
- cancelEvent.setAction(MotionEvent.ACTION_CANCEL | (motionEvent.getActionIndex() << MotionEvent.ACTION_POINTER_INDEX_SHIFT));
- mView.onTouchEvent(cancelEvent);
- cancelEvent.recycle();
- }
-
- if (mSwiping) {
- mTranslationY = deltaY;
- if (deltaY - mSwipingSlop < 0)
- mView.setTranslationY(0);
- else mView.setTranslationY(deltaY - mSwipingSlop);
- return true;
- }
- break;
- }
-
- }
- return returnTrue;
- }
-
- private void performDismiss() {
- // Animate the dismissed view to zero-height and then fire the dismiss callback.
- // This triggers layout on each animation frame; in the future we may want to do something
- // smarter and more performant.
-
- final ViewGroup.LayoutParams lp = mView.getLayoutParams();
- final int originalHeight = mView.getHeight();
-
- ValueAnimator animator = ValueAnimator.ofInt(originalHeight, 1).setDuration(mAnimationTime);
-
- animator.addListener(new AnimatorListenerAdapter() {
- @Override
- public void onAnimationEnd(Animator animation) {
- mCallbacks.onDismiss(mView);
- // Reset view presentation
- mView.setAlpha(1f);
- mView.setTranslationX(0);
- lp.height = originalHeight;
- mView.setLayoutParams(lp);
- }
- });
-
- animator.addUpdateListener(valueAnimator -> {
- lp.height = (Integer) valueAnimator.getAnimatedValue();
- mView.setLayoutParams(lp);
- });
-
- animator.start();
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultImageListAdapter.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultImageListAdapter.java
deleted file mode 100644
index 0456f1a..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultImageListAdapter.java
+++ /dev/null
@@ -1,162 +0,0 @@
-package com.sjapps.library.customdialog.adapter;
-
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.ImageView;
-import android.widget.TextView;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.sjapps.library.R;
-import com.sjapps.library.customdialog.ImageListItem;
-import com.sjapps.library.customdialog.list.events.ListItemClickObj;
-
-import java.util.ArrayList;
-
-public class DefaultImageListAdapter extends RecyclerView.Adapter {
-
- public ArrayList arrayListItems;
-
- boolean isSelectable;
-
- int itemBgRes;
- int itemBgResSelected;
- int listItemBgColor;
- int listItemBgColorSelected;
- int textColor;
-
- ListItemClickObj itemClick;
- ArrayList selectedItems;
-
-
- public static class ViewHolder extends RecyclerView.ViewHolder {
- TextView valTxt;
- ImageView imageView;
-
- public ViewHolder(@NonNull View itemView) {
- super(itemView);
- valTxt = itemView.findViewById(R.id.value1Txt);
- imageView = itemView.findViewById(R.id.imageView);
- }
-
- public TextView getTxt() {
- return valTxt;
- }
-
- public ImageView getImageView() {
- return imageView;
- }
-
- public View getView() {
- return itemView.findViewById(R.id.layoutItem);
- }
-
- }
-
- public DefaultImageListAdapter(ArrayList arrayList,
- boolean isSelectable,
- @Nullable ListItemClickObj itemClick,
- ArrayList selectedItems,
- int itemBgRes,
- int itemBgResSelected,
- int textColor,
- int listItemBgColor,
- int listItemBgColorSelected) {
- this.itemClick = itemClick;
- this.isSelectable = isSelectable;
- this.selectedItems = selectedItems;
- this.itemBgRes = itemBgRes;
- this.itemBgResSelected = itemBgResSelected;
- this.textColor = textColor;
- this.arrayListItems = arrayList;
- this.listItemBgColor = listItemBgColor;
- this.listItemBgColorSelected = listItemBgColorSelected;
- }
-
-
- @NonNull
- @Override
- public DefaultImageListAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.default_image_list_item, parent, false);
- return new DefaultImageListAdapter.ViewHolder(view);
- }
-
- @Override
- public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
- setValues(holder, position);
- setBackground(holder, position);
-
- if (textColor != 1) {
- holder.getTxt().setTextColor(textColor);
- }
-
- if (isSelectable) {
- holder.getView().setOnClickListener(v ->
- checkSelected(holder, arrayListItems.get(position))
- );
-
- return;
- }
-
- holder.getView().setOnClickListener(v -> itemClick.onClick(position, arrayListItems.get(position)));
-
- }
-
- private void setBackground(@NonNull ViewHolder holder, int position) {
- if (!isSelectable) {
- setItemResource(holder, itemBgRes);
- return;
- }
-
- if (selectedItems.contains(arrayListItems.get(position))) {
- setItemResource(holder, itemBgResSelected);
- setItemColor(holder,listItemBgColorSelected);
- }
- else {
- setItemResource(holder, itemBgRes);
- setItemColor(holder,listItemBgColor);
- }
- }
-
- private void setValues(@NonNull ViewHolder holder, int position) {
- holder.getTxt().setText(arrayListItems.get(position).getName());
- holder.getImageView().setImageDrawable(arrayListItems.get(position).getImage());
-
- }
-
- private void checkSelected(@NonNull ViewHolder holder,ImageListItem obj) {
- if (!selectedItems.contains(obj))
- selectItem(holder, obj);
- else deselectItem(holder, obj);
- }
-
- private void selectItem(@NonNull ViewHolder holder,ImageListItem obj) {
- selectedItems.add(obj);
- setItemResource(holder, itemBgResSelected);
- setItemColor(holder,listItemBgColorSelected);
- }
-
- private void deselectItem(@NonNull ViewHolder holder,ImageListItem obj) {
- selectedItems.remove(obj);
- setItemResource(holder, itemBgRes);
- setItemColor(holder,listItemBgColor);
- }
-
- private void setItemResource(@NonNull ViewHolder holder, int drawable) {
- holder.getView().setBackgroundResource(drawable);
- }
-
- private void setItemColor(@NonNull ViewHolder holder, int color){
- if (color == -1)
- return;
- holder.getView().getBackground().mutate().setTint(color);
- }
-
- @Override
- public int getItemCount() {
- return arrayListItems.size();
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapter.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapter.java
deleted file mode 100644
index c0526b6..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapter.java
+++ /dev/null
@@ -1,112 +0,0 @@
-package com.sjapps.library.customdialog.adapter;
-
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-
-import androidx.annotation.NonNull;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.sjapps.library.R;
-import com.sjapps.library.customdialog.list.events.ListItemClick;
-
-import java.util.ArrayList;
-
-public class DefaultListAdapter extends RecyclerView.Adapter {
-
- String[] items;
- boolean isSelectable;
- ListItemClick itemClick;
- ArrayList selectedItems;
- int itemBgRes;
- int itemBgResSelected;
- int listItemBgColor;
- int listItemBgColorSelected;
- int textColor;
-
-
- public DefaultListAdapter(String[] items,
- boolean isSelectable,
- ListItemClick itemClick,
- ArrayList selectedItems,
- int itemBgRes,
- int itemBgResSelected,
- int textColor,
- int listItemBgColor,
- int listItemBgColorSelected) {
- this.items = items;
- this.isSelectable = isSelectable;
- this.itemClick = itemClick;
- this.selectedItems = selectedItems;
- this.itemBgRes = itemBgRes;
- this.itemBgResSelected = itemBgResSelected;
- this.textColor = textColor;
- this.listItemBgColor = listItemBgColor;
- this.listItemBgColorSelected = listItemBgColorSelected;
-
- }
-
- @NonNull
- @Override
- public DefaultListAdapterGeneric.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.default_list_item,parent,false);
- return new DefaultListAdapterGeneric.ViewHolder(view);
- }
-
- @Override
- public void onBindViewHolder(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int position) {
- holder.getVal1Txt().setText(items[position]);
-
- if (selectedItems.contains(items[position])) {
- setItemResource(holder, itemBgResSelected);
- setItemColor(holder,listItemBgColorSelected);
- }
- else {
- setItemResource(holder, itemBgRes);
- setItemColor(holder,listItemBgColor);
- }
- if (textColor != 1)
- holder.getVal1Txt().setTextColor(textColor);
-
- if (isSelectable) {
- holder.getView().setOnClickListener(v -> {
- if (!selectedItems.contains(items[position]))
- selectItem(holder,position);
- else deselectItem(holder, position);
- });
- return;
- }
-
- holder.getView().setOnClickListener(v -> itemClick.onClick(position,items[position]));
-
- }
-
- private void selectItem(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int position){
- selectedItems.add(items[position]);
- setItemResource(holder,itemBgResSelected);
- setItemColor(holder,listItemBgColorSelected);
-
- }
-
- private void deselectItem(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int position){
- selectedItems.remove(items[position]);
- setItemResource(holder,itemBgRes);
- setItemColor(holder,listItemBgColor);
- }
-
- private void setItemResource(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int drawable){
- holder.getView().setBackgroundResource(drawable);
- }
-
- private void setItemColor(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int color){
- if (color == -1)
- return;
- holder.getView().getBackground().mutate().setTint(color);
- }
-
- @Override
- public int getItemCount() {
- return items.length;
- }
-
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapterGeneric.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapterGeneric.java
deleted file mode 100644
index fd9c9da..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultListAdapterGeneric.java
+++ /dev/null
@@ -1,290 +0,0 @@
-package com.sjapps.library.customdialog.adapter;
-
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.TextView;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.recyclerview.widget.RecyclerView;
-
-import com.sjapps.library.R;
-import com.sjapps.library.customdialog.ListItemValue;
-import com.sjapps.library.customdialog.ListItemValues;
-import com.sjapps.library.customdialog.list.events.ListItemClickObj;
-
-import java.util.ArrayList;
-
-public class DefaultListAdapterGeneric extends RecyclerView.Adapter {
-
- public ArrayList arrayListItems;
- public T[] listObj;
-
- private ListItemValue value;
- private ListItemValues values;
-
- boolean isArrList;
- boolean isObjArr;
- boolean hasTwoVal;
- boolean isSelectable;
-
- int itemBgRes;
- int itemBgResSelected;
- int listItemBgColor;
- int listItemBgColorSelected;
- int textColor;
-
- ListItemClickObj itemClick;
- ArrayList selectedItems;
-
-
- public static class ViewHolder extends RecyclerView.ViewHolder{
- TextView val1Txt;
- TextView val2Txt;
-
- public ViewHolder(@NonNull View itemView) {
- super(itemView);
- val1Txt = itemView.findViewById(R.id.value1Txt);
- val2Txt = itemView.findViewById(R.id.value2Txt);
- }
-
- public TextView getVal1Txt() {
- return val1Txt;
- }
-
- public TextView getVal2Txt() {
- return val2Txt;
- }
-
- public View getView(){
- return itemView.findViewById(R.id.layoutItem);
- }
-
- }
-
- public DefaultListAdapterGeneric(T[] objArray,
- ListItemValue value,
- boolean isSelectable,
- @Nullable ListItemClickObj itemClick,
- ArrayList selectedItems,
- int itemBgRes,
- int itemBgResSelected,
- int textColor,
- int listItemBgColor,
- int listItemBgColorSelected){
- this.value = value;
- this.itemClick = itemClick;
- this.isSelectable = isSelectable;
- this.selectedItems = selectedItems;
- this.itemBgRes = itemBgRes;
- this.itemBgResSelected = itemBgResSelected;
- this.textColor = textColor;
- this.listItemBgColor = listItemBgColor;
- this.listItemBgColorSelected = listItemBgColorSelected;
- ObjArrayAdapter(objArray);
- }
-
- public DefaultListAdapterGeneric(T[] objArray,
- ListItemValues values,
- boolean isSelectable,
- @Nullable ListItemClickObj itemClick,
- ArrayList selectedItems,
- int itemBgRes,
- int itemBgResSelected,
- int textColor,
- int listItemBgColor,
- int listItemBgColorSelected){
- this.values = values;
- this.itemClick = itemClick;
- hasTwoVal = true;
- this.isSelectable = isSelectable;
- this.selectedItems = selectedItems;
- this.itemBgRes = itemBgRes;
- this.itemBgResSelected = itemBgResSelected;
- this.textColor = textColor;
- this.listItemBgColor = listItemBgColor;
- this.listItemBgColorSelected = listItemBgColorSelected;
- ObjArrayAdapter(objArray);
- }
-
- public DefaultListAdapterGeneric(ArrayList arrayList,
- ListItemValue value,
- boolean isSelectable,
- @Nullable ListItemClickObj itemClick,
- ArrayList selectedItems,
- int itemBgRes,
- int itemBgResSelected,
- int textColor,
- int listItemBgColor,
- int listItemBgColorSelected){
- this.value = value;
- this.itemClick = itemClick;
- this.isSelectable = isSelectable;
- this.selectedItems = selectedItems;
- this.itemBgRes = itemBgRes;
- this.itemBgResSelected = itemBgResSelected;
- this.textColor = textColor;
- this.listItemBgColor = listItemBgColor;
- this.listItemBgColorSelected = listItemBgColorSelected;
- ArrayListAdapter(arrayList);
- }
-
- public DefaultListAdapterGeneric(ArrayList arrayList,
- ListItemValues values,
- boolean isSelectable,
- @Nullable ListItemClickObj itemClick,
- ArrayList selectedItems,
- int itemBgRes,
- int itemBgResSelected,
- int textColor,
- int listItemBgColor,
- int listItemBgColorSelected){
- this.values = values;
- this.itemClick = itemClick;
- hasTwoVal = true;
- this.isSelectable = isSelectable;
- this.selectedItems = selectedItems;
- this.itemBgRes = itemBgRes;
- this.itemBgResSelected = itemBgResSelected;
- this.textColor = textColor;
- this.listItemBgColor = listItemBgColor;
- this.listItemBgColorSelected = listItemBgColorSelected;
- ArrayListAdapter(arrayList);
- }
-
- private void ObjArrayAdapter(T[] objArray){
- this.listObj = objArray;
- isObjArr = true;
-
- }
-
- private void ArrayListAdapter(ArrayList arrayList){
- this.arrayListItems = arrayList;
- isArrList = true;
- }
-
- @NonNull
- @Override
- public DefaultListAdapterGeneric.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.default_list_item,parent,false);
- return new ViewHolder(view);
- }
-
- @Override
- public void onBindViewHolder(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int position) {
- setValues(holder,position);
- setBackground(holder,position);
-
- if (textColor != 1){
- holder.getVal1Txt().setTextColor(textColor);
- holder.getVal2Txt().setTextColor(textColor);
- }
-
- if (isSelectable){
- holder.getView().setOnClickListener(v -> {
- if (isArrList)
- checkSelected(holder, arrayListItems.get(position));
- else if (isObjArr)
- checkSelected(holder, listObj[position]);
- });
-
- return;
- }
-
- if (isArrList)
- holder.getView().setOnClickListener(v -> itemClick.onClick(position,arrayListItems.get(position)));
-
- if (isObjArr)
- holder.getView().setOnClickListener(v -> itemClick.onClick(position,listObj[position]));
-
- }
-
- private void setBackground(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int position) {
- if (!isSelectable) {
- setItemResource(holder,itemBgRes);
- return;
- }
- if (isArrList) {
- if (selectedItems.contains(arrayListItems.get(position))) {
- setItemResource(holder, itemBgResSelected);
- setItemColor(holder,listItemBgColorSelected);
- }
- else {
- setItemResource(holder, itemBgRes);
- setItemColor(holder,listItemBgColor);
- }
- return;
- }
- if (isObjArr)
- if (selectedItems.contains(listObj[position])) {
- setItemResource(holder, itemBgResSelected);
- setItemColor(holder,listItemBgColorSelected);
- }
- else {
- setItemResource(holder, itemBgRes);
- setItemColor(holder,listItemBgColor);
- }
- }
-
- private void setValues(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int position){
- if (isArrList){
- if (!hasTwoVal) {
- holder.getVal1Txt().setText(value.getValue(arrayListItems.get(position)));
- return;
- }
- holder.getVal1Txt().setText(values.getValue1(arrayListItems.get(position)));
- holder.getVal2Txt().setText(values.getValue2(arrayListItems.get(position)));
- holder.getVal2Txt().setVisibility(View.VISIBLE);
- return;
- }
- if (isObjArr) {
- if (!hasTwoVal) {
- holder.getVal1Txt().setText(value.getValue(listObj[position]));
- return;
- }
- holder.getVal1Txt().setText(values.getValue1(listObj[position]));
- holder.getVal2Txt().setText(values.getValue2(listObj[position]));
- holder.getVal2Txt().setVisibility(View.VISIBLE);
- }
- }
-
- private void checkSelected(@NonNull DefaultListAdapterGeneric.ViewHolder holder, T obj){
- if (!selectedItems.contains(obj))
- selectItem(holder,obj);
- else deselectItem(holder,obj);
- }
-
- private void selectItem(@NonNull DefaultListAdapterGeneric.ViewHolder holder, T obj){
- selectedItems.add(obj);
- setItemResource(holder, itemBgResSelected);
- setItemColor(holder,listItemBgColorSelected);
-
- }
-
- private void deselectItem(@NonNull DefaultListAdapterGeneric.ViewHolder holder, T obj){
- selectedItems.remove(obj);
- setItemResource(holder,itemBgRes);
- setItemColor(holder,listItemBgColor);
-
- }
-
- private void setItemResource(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int drawable){
- holder.getView().setBackgroundResource(drawable);
- }
-
- private void setItemColor(@NonNull DefaultListAdapterGeneric.ViewHolder holder, int color){
- if (color == -1)
- return;
- holder.getView().getBackground().mutate().setTint(color);
- }
-
- @Override
- public int getItemCount() {
- if (isArrList)
- return arrayListItems.size();
- if (isObjArr)
- return listObj.length;
- return 0;
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/functions.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/functions.java
deleted file mode 100644
index ceb278a..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/functions.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.sjapps.library.customdialog;
-
-import android.app.Dialog;
-import android.content.Context;
-import android.content.res.Configuration;
-import android.content.res.Resources;
-import android.util.Log;
-import android.util.TypedValue;
-import android.view.ViewGroup;
-
-import androidx.annotation.NonNull;
-
-import com.sjapps.library.R;
-
-public class functions {
- public static void SetDialogSize(@NonNull Context context, Dialog dialog, int maxWidth){
- Configuration configuration = context.getResources().getConfiguration();
- int width = ViewGroup.LayoutParams.MATCH_PARENT;
- int height = ViewGroup.LayoutParams.WRAP_CONTENT;
-
- if (configuration.screenWidthDp > maxWidth)
- width = dpToPixels(context,maxWidth);
-
- dialog.getWindow().setLayout(width, height);
-
- }
- public static int dpToPixels(@NonNull Context context, float dp) {
- Resources r = context.getResources();
- return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, r.getDisplayMetrics());
- }
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/list/events/ListItemClick.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/list/events/ListItemClick.java
deleted file mode 100644
index 43f2c47..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/list/events/ListItemClick.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.sjapps.library.customdialog.list.events;
-
-public interface ListItemClick {
- void onClick(int position, String value);
-}
diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/list/events/ListItemClickObj.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/list/events/ListItemClickObj.java
deleted file mode 100644
index 5c38355..0000000
--- a/SJDialog/src/main/java/com/sjapps/library/customdialog/list/events/ListItemClickObj.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.sjapps.library.customdialog.list.events;
-
-public interface ListItemClickObj {
- void onClick(int position, T obj);
-}
diff --git a/SJDialog/src/main/res/anim/slide_in.xml b/SJDialog/src/main/res/anim/slide_in.xml
deleted file mode 100644
index 97f2515..0000000
--- a/SJDialog/src/main/res/anim/slide_in.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/anim/slide_out.xml b/SJDialog/src/main/res/anim/slide_out.xml
deleted file mode 100644
index dc2c40d..0000000
--- a/SJDialog/src/main/res/anim/slide_out.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/dialog_background.xml b/SJDialog/src/main/res/drawable/dialog_background.xml
deleted file mode 100644
index aa579df..0000000
--- a/SJDialog/src/main/res/drawable/dialog_background.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/dialog_background_material3_red.xml b/SJDialog/src/main/res/drawable/dialog_background_material3_red.xml
deleted file mode 100644
index a82d7b0..0000000
--- a/SJDialog/src/main/res/drawable/dialog_background_material3_red.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/dialog_background_old.xml b/SJDialog/src/main/res/drawable/dialog_background_old.xml
deleted file mode 100644
index 0812011..0000000
--- a/SJDialog/src/main/res/drawable/dialog_background_old.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/dialog_background_red.xml b/SJDialog/src/main/res/drawable/dialog_background_red.xml
deleted file mode 100644
index c3b617d..0000000
--- a/SJDialog/src/main/res/drawable/dialog_background_red.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_button.xml b/SJDialog/src/main/res/drawable/ripple_button.xml
deleted file mode 100644
index 535fe85..0000000
--- a/SJDialog/src/main/res/drawable/ripple_button.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_button_material3_red.xml b/SJDialog/src/main/res/drawable/ripple_button_material3_red.xml
deleted file mode 100644
index 846ed5a..0000000
--- a/SJDialog/src/main/res/drawable/ripple_button_material3_red.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_button_old.xml b/SJDialog/src/main/res/drawable/ripple_button_old.xml
deleted file mode 100644
index 6ecd2a7..0000000
--- a/SJDialog/src/main/res/drawable/ripple_button_old.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_button_red.xml b/SJDialog/src/main/res/drawable/ripple_button_red.xml
deleted file mode 100644
index e799e3b..0000000
--- a/SJDialog/src/main/res/drawable/ripple_button_red.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_list.xml b/SJDialog/src/main/res/drawable/ripple_list.xml
deleted file mode 100644
index 18b9d7e..0000000
--- a/SJDialog/src/main/res/drawable/ripple_list.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_list_old.xml b/SJDialog/src/main/res/drawable/ripple_list_old.xml
deleted file mode 100644
index 5ae90de..0000000
--- a/SJDialog/src/main/res/drawable/ripple_list_old.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_list_selected.xml b/SJDialog/src/main/res/drawable/ripple_list_selected.xml
deleted file mode 100644
index b87b794..0000000
--- a/SJDialog/src/main/res/drawable/ripple_list_selected.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/drawable/ripple_list_selected_old.xml b/SJDialog/src/main/res/drawable/ripple_list_selected_old.xml
deleted file mode 100644
index affa5af..0000000
--- a/SJDialog/src/main/res/drawable/ripple_list_selected_old.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- -
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/font/koho.ttf b/SJDialog/src/main/res/font/koho.ttf
deleted file mode 100644
index 78e04aa..0000000
Binary files a/SJDialog/src/main/res/font/koho.ttf and /dev/null differ
diff --git a/SJDialog/src/main/res/font/koho_bold.ttf b/SJDialog/src/main/res/font/koho_bold.ttf
deleted file mode 100644
index a0123f5..0000000
Binary files a/SJDialog/src/main/res/font/koho_bold.ttf and /dev/null differ
diff --git a/SJDialog/src/main/res/font/koho_italic.ttf b/SJDialog/src/main/res/font/koho_italic.ttf
deleted file mode 100644
index e6cf346..0000000
Binary files a/SJDialog/src/main/res/font/koho_italic.ttf and /dev/null differ
diff --git a/SJDialog/src/main/res/layout/basic_dialog.xml b/SJDialog/src/main/res/layout/basic_dialog.xml
deleted file mode 100644
index b581a7f..0000000
--- a/SJDialog/src/main/res/layout/basic_dialog.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/layout/button_template.xml b/SJDialog/src/main/res/layout/button_template.xml
deleted file mode 100644
index d0099ce..0000000
--- a/SJDialog/src/main/res/layout/button_template.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/layout/button_template_1.xml b/SJDialog/src/main/res/layout/button_template_1.xml
deleted file mode 100644
index a75ef37..0000000
--- a/SJDialog/src/main/res/layout/button_template_1.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/layout/custom_view_dialog.xml b/SJDialog/src/main/res/layout/custom_view_dialog.xml
deleted file mode 100644
index 1d8a6de..0000000
--- a/SJDialog/src/main/res/layout/custom_view_dialog.xml
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/layout/default_image_list_item.xml b/SJDialog/src/main/res/layout/default_image_list_item.xml
deleted file mode 100644
index 03938fe..0000000
--- a/SJDialog/src/main/res/layout/default_image_list_item.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/layout/default_list_item.xml b/SJDialog/src/main/res/layout/default_list_item.xml
deleted file mode 100644
index 2096c5f..0000000
--- a/SJDialog/src/main/res/layout/default_list_item.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/layout/list_dialog.xml b/SJDialog/src/main/res/layout/list_dialog.xml
deleted file mode 100644
index a7fb9b5..0000000
--- a/SJDialog/src/main/res/layout/list_dialog.xml
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/layout/message_dialog.xml b/SJDialog/src/main/res/layout/message_dialog.xml
deleted file mode 100644
index e7c54b6..0000000
--- a/SJDialog/src/main/res/layout/message_dialog.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values-night/colors.xml b/SJDialog/src/main/res/values-night/colors.xml
deleted file mode 100644
index 237cd36..0000000
--- a/SJDialog/src/main/res/values-night/colors.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-
- #B2C5FF
- #002A79
- #003EA9
- #DAE2FF
- #C1C6DD
- #2A3042
- #414659
- #DCE1F9
- #C0C1FF
- #1200AA
- #2510E1
- #E1E0FF
- #FFB4A9
- #930006
- #680003
- #FFDAD4
- #1B1B1F
- #E3E1E6
- #1B1B1F
- #E3E1E6
- #44464E
- #C6C6D0
- #8F909A
- #1B1B1F
- #E3E1E6
- #0053DC
- #000000
- #0053DC
-
- #0060F4
- #BA1B1B
- #625FCD
-
-
- #9C4146
- #FFFFFF
- #FFDADB
- #400008
-
- #333333
- #4a4a4a
- #0060f4
- #BA1B1B
-
- #E5E5E5
- #FFDAD4
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values-night/themes.xml b/SJDialog/src/main/res/values-night/themes.xml
deleted file mode 100644
index d1f9bf2..0000000
--- a/SJDialog/src/main/res/values-night/themes.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values/colors.xml b/SJDialog/src/main/res/values/colors.xml
deleted file mode 100644
index fcb31d8..0000000
--- a/SJDialog/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
- #0053DC
- #FFFFFF
- #DAE2FF
- #00174D
- #585E71
- #FFFFFF
- #DCE1F9
- #151B2C
- #433EF7
- #FFFFFF
- #E1E0FF
- #07006D
- #BA1B1B
- #FFDAD4
- #FFFFFF
- #410001
- #FEFBFF
- #1B1B1F
- #FEFBFF
- #1B1B1F
- #E2E2EC
- #44464E
- #75767F
- #F2F0F5
- #303033
- #B2C5FF
- #000000
- #B2C5FF
-
- #0060F4
- #BA1B1B
- #625FCD
-
-
- #9C4146
- #FFFFFF
- #FFDADB
- #400008
-
- #E5E5E5
- #D5D5D5
- #0060f4
- #BA1B1B
- #930006
-
- #333333
- #410001
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values/styles.xml b/SJDialog/src/main/res/values/styles.xml
deleted file mode 100644
index 2ae15e6..0000000
--- a/SJDialog/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/main/res/values/themes.xml b/SJDialog/src/main/res/values/themes.xml
deleted file mode 100644
index c163b3a..0000000
--- a/SJDialog/src/main/res/values/themes.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/SJDialog/src/test/java/com/sjapps/library/ExampleUnitTest.java b/SJDialog/src/test/java/com/sjapps/library/ExampleUnitTest.java
deleted file mode 100644
index 4c438e1..0000000
--- a/SJDialog/src/test/java/com/sjapps/library/ExampleUnitTest.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.sjapps.library;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * @see Testing documentation
- */
-public class ExampleUnitTest {
- @Test
- public void addition_isCorrect() {
- assertEquals(4, 2 + 2);
- }
-}
\ No newline at end of file
diff --git a/aestheticdialogs/.gitignore b/aestheticdialogs/.gitignore
deleted file mode 100644
index 796b96d..0000000
--- a/aestheticdialogs/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
diff --git a/aestheticdialogs/build.gradle b/aestheticdialogs/build.gradle
deleted file mode 100644
index 703a2bc..0000000
--- a/aestheticdialogs/build.gradle
+++ /dev/null
@@ -1,46 +0,0 @@
-apply plugin: 'com.android.library'
-apply plugin: 'kotlin-android'
-apply plugin: 'kotlin-android-extensions'
-apply plugin: 'kotlin-kapt'
-
-android {
- compileSdkVersion 29
- buildToolsVersion "29.0.3"
-
-
- defaultConfig {
- minSdkVersion 14
- targetSdkVersion 29
- versionCode 1
- versionName "1.3.6"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles 'consumer-rules.pro'
- vectorDrawables.useSupportLibrary = true
- multiDexEnabled true
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
- compileOptions {
- sourceCompatibility = '1.8'
- targetCompatibility = '1.8'
- }
-}
-
-dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
-
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'androidx.cardview:cardview:1.0.0'
- testImplementation 'junit:junit:4.13'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- implementation "androidx.core:core-ktx:1.3.2"
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
diff --git a/aestheticdialogs/consumer-rules.pro b/aestheticdialogs/consumer-rules.pro
deleted file mode 100644
index e69de29..0000000
diff --git a/aestheticdialogs/proguard-rules.pro b/aestheticdialogs/proguard-rules.pro
deleted file mode 100644
index f1b4245..0000000
--- a/aestheticdialogs/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
diff --git a/aestheticdialogs/src/androidTest/java/com/thecode/aestheticdialogs/ExampleInstrumentedTest.kt b/aestheticdialogs/src/androidTest/java/com/thecode/aestheticdialogs/ExampleInstrumentedTest.kt
deleted file mode 100644
index 920bc05..0000000
--- a/aestheticdialogs/src/androidTest/java/com/thecode/aestheticdialogs/ExampleInstrumentedTest.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.thecode.aestheticdialogs
-
-import androidx.test.platform.app.InstrumentationRegistry
-import androidx.test.ext.junit.runners.AndroidJUnit4
-
-import org.junit.Test
-import org.junit.runner.RunWith
-
-import org.junit.Assert.*
-
-/**
- * Instrumented test, which will execute on an Android device.
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-@RunWith(AndroidJUnit4::class)
-class ExampleInstrumentedTest {
- @Test
- fun useAppContext() {
- // Context of the app under test.
- val appContext = InstrumentationRegistry.getInstrumentation().targetContext
- assertEquals("com.thecode.aestheticdialogs", appContext.packageName)
- }
-}
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/AndroidManifest.xml b/aestheticdialogs/src/main/AndroidManifest.xml
deleted file mode 100644
index 78aa1c3..0000000
--- a/aestheticdialogs/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/AestheticDialog.kt b/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/AestheticDialog.kt
deleted file mode 100644
index 755de0e..0000000
--- a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/AestheticDialog.kt
+++ /dev/null
@@ -1,620 +0,0 @@
-package com.thecode.aestheticdialogs
-
-import android.app.Activity
-import android.graphics.Color
-import android.graphics.drawable.ColorDrawable
-import android.os.Handler
-import android.view.Gravity
-import android.view.View
-import android.view.WindowManager
-import androidx.annotation.Keep
-import androidx.annotation.NonNull
-import androidx.appcompat.app.AlertDialog
-import androidx.appcompat.widget.AppCompatButton
-import androidx.appcompat.widget.AppCompatImageView
-import androidx.appcompat.widget.AppCompatTextView
-import androidx.appcompat.widget.LinearLayoutCompat
-import androidx.core.content.ContextCompat
-import kotlinx.android.synthetic.main.dialog_connectify_error.view.*
-import kotlinx.android.synthetic.main.dialog_connectify_success.view.*
-import kotlinx.android.synthetic.main.dialog_emoji.view.*
-import kotlinx.android.synthetic.main.dialog_emotion.view.*
-import kotlinx.android.synthetic.main.dialog_flash.view.*
-import kotlinx.android.synthetic.main.dialog_flat.view.*
-import kotlinx.android.synthetic.main.dialog_rainbow.view.*
-import kotlinx.android.synthetic.main.dialog_toaster.view.*
-import java.text.SimpleDateFormat
-import java.util.*
-
-
-/**
- * Aesthetic Dialog class
- * Use Builder to create a new instance.
- *
- * @author Gabriel The Code
- */
-
-@Keep
-class AestheticDialog {
-
- class Builder(
- //Necessary parameters
- @NonNull private val activity: Activity,
- @NonNull private val dialogStyle: DialogStyle,
- @NonNull private val dialogType: DialogType) {
-
- lateinit var alertDialog: AlertDialog
- private val dialogBuilder: AlertDialog.Builder = AlertDialog.Builder(activity)
-
- private var title: String = "Title"
- private var message: String = "Message"
- // Optional features
- private var isDarkMode: Boolean = false
- private var isCancelable: Boolean = true
- private var duration: Int = 0
- private var gravity: Int = Gravity.NO_GRAVITY
- private var animation: DialogAnimation = DialogAnimation.DEFAULT
- private lateinit var layoutView: View
- private var onClickListener: OnDialogClickListener = object : OnDialogClickListener {
- override fun onClick(dialog: Builder) {
- dialog.dismiss()
- }
- }
-
-
- /**
- * Set dialog title text
- *
- * @param title
- * @return this, for chaining.
- */
- @NonNull
- fun setTitle(@NonNull title: String): Builder {
- this.title = title
- return this
- }
-
- /**
- * Set dialog message text
- *
- * @param message
- * @return this, for chaining.
- */
- @NonNull
- fun setMessage(@NonNull message: String): Builder {
- this.message = message
- return this
- }
-
- /**
- * Set dialog mode. Defined by default to false
- *
- * @param isDarkMode
- * @return this, for chaining.
- */
- @NonNull
- fun setDarkMode(@NonNull isDarkMode: Boolean): Builder {
- this.isDarkMode = isDarkMode
- return this
- }
-
- /**
- * Set an OnClickListener to the dialog
- *
- * @param onDialogClickListener interface for callback event on click of button.
- * @return this, for chaining.
- */
- @NonNull
- fun setOnClickListener(onDialogClickListener: OnDialogClickListener): Builder {
- this.onClickListener = onDialogClickListener
- return this
- }
-
- /**
- * Define if the dialog is cancelable
- *
- * @param isCancelable
- * @return this, for chaining.
- */
- @NonNull
- fun setCancelable(isCancelable: Boolean): Builder {
- this.isCancelable = isCancelable
- return this
- }
-
- /**
- * Define the display duration of the dialog
- *
- * @param duration in milliseconds
- * @return this, for chaining.
- */
- @NonNull
- fun setDuration(duration: Int): Builder {
- if (duration != 0) {
- this.duration = duration
- Handler().postDelayed({
- this.dismiss()
- }, duration.toLong())
- }
- return this
- }
-
- /**
- * Set the gravity of the dialog
- *
- * @param gravity in milliseconds
- * @return this, for chaining.
- */
- @NonNull
- fun setGravity(gravity: Int): Builder {
- this.gravity = gravity
- return this
- }
-
- /**
- * Set the animation of the dialog
- *
- * @param animation in milliseconds
- * @return this, for chaining.
- */
- @NonNull
- fun setAnimation(animation: DialogAnimation): Builder {
- this.animation = animation
- return this
- }
-
- /**
- * Dismiss the dialog
- *
- * @return Aesthetic Dialog instance.
- */
- @NonNull
- fun dismiss(): AestheticDialog {
- if (alertDialog.isShowing) {
- alertDialog.dismiss()
- }
- return AestheticDialog()
- }
-
-
- /**
- * Choose the dialog animation according to the parameter
- *
- */
- @NonNull
- private fun chooseAnimation() {
- when (animation) {
- DialogAnimation.ZOOM -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationZoom
- }
- DialogAnimation.FADE -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationFade
- }
- DialogAnimation.CARD -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationCard
- }
- DialogAnimation.SHRINK -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationShrink
- }
- DialogAnimation.SWIPE_LEFT -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSwipeLeft
- }
- DialogAnimation.SWIPE_RIGHT -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSwipeRight
- }
- DialogAnimation.IN_OUT -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationInOut
- }
- DialogAnimation.SPIN -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSpin
- }
- DialogAnimation.SPLIT -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSplit
- }
- DialogAnimation.DIAGONAL -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationDiagonal
- }
- DialogAnimation.WINDMILL -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationWindMill
- }
- DialogAnimation.SLIDE_UP -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSlideUp
- }
- DialogAnimation.SLIDE_DOWN -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSlideDown
- }
- DialogAnimation.SLIDE_LEFT -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSlideLeft
- }
- DialogAnimation.SLIDE_RIGHT -> {
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimationSlideRight
- }
- DialogAnimation.DEFAULT ->{
- alertDialog.window?.attributes?.windowAnimations = R.style.DialogAnimation
- }
- }
- }
-
-
- /**
- * Displays the dialog according to the parameters of the Builder
- *
- * @return Aesthetic Dialog instance.
- */
- @NonNull
- fun show(): AestheticDialog {
-
- when (dialogStyle) {
- DialogStyle.EMOJI -> {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_emoji, null)
- val layoutDialog = layoutView.dialog_layout_emoji
- val imgClose: AppCompatImageView = layoutView.image_close_emoji
- val icon: AppCompatImageView = layoutView.dialog_icon_emoji
- val textTitle: AppCompatTextView = layoutView.text_title_emoji
- val textMessage: AppCompatTextView = layoutView.text_message_emoji
- textMessage.text = message
- textTitle.text = title
-
- if (dialogType == DialogType.SUCCESS) {
- textTitle.setTextColor(ContextCompat.getColor(activity, R.color.dialog_success))
- icon.setImageResource(R.drawable.thumbs_up_sign)
- } else {
- textTitle.setTextColor(ContextCompat.getColor(activity, R.color.dialog_error))
- icon.setImageResource(R.drawable.man_shrugging)
- }
-
- if (isDarkMode) {
- textMessage.setTextColor(ContextCompat.getColor(activity, R.color.md_white_1000))
- layoutDialog.setBackgroundColor(ContextCompat.getColor(activity, R.color.dark_background))
- }
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.TOP)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height_emoji_dialog)
- alertDialog.window?.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, height)
-
- imgClose.setOnClickListener { onClickListener.onClick(this) }
-
- }
-
-
- DialogStyle.DRAKE -> {
- layoutView = if (dialogType == DialogType.SUCCESS) {
- activity.layoutInflater.inflate(R.layout.dialog_drake_success, null)
- } else {
- activity.layoutInflater.inflate(R.layout.dialog_drake_error, null)
- }
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.CENTER)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height_drake)
- alertDialog.window?.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, height)
- }
-
- DialogStyle.TOASTER -> {
- if (isDarkMode) {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_toaster, null)
- val layoutDialog = layoutView.dialog_layout_toaster
- layoutDialog.setBackgroundColor(ContextCompat.getColor(activity, R.color.dark_background))
- val imgClose: AppCompatImageView = layoutView.image_close_toaster
- val icon: AppCompatImageView = layoutView.dialog_icon_toaster
- val textTitle: AppCompatTextView = layoutView.text_title_toaster
- val textMessage: AppCompatTextView = layoutView.text_message_toaster
- textMessage.setTextColor(ContextCompat.getColor(activity, R.color.md_white_1000))
- val verticalView = layoutView.vertical_view_toaster
- textMessage.text = message
- textTitle.text = title
- when (dialogType) {
- DialogType.ERROR -> {
- textTitle.setTextColor(ContextCompat.getColor(activity, R.color.dialog_error))
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_error))
- icon.setImageResource(R.drawable.ic_error_red_24dp)
- }
- DialogType.SUCCESS -> {
- textTitle.setTextColor(ContextCompat.getColor(activity, R.color.dialog_success))
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_success))
- icon.setImageResource(R.drawable.ic_check_circle_green_24dp)
- }
- DialogType.WARNING -> {
- textTitle.setTextColor(ContextCompat.getColor(activity, R.color.dialog_warning))
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_warning))
- icon.setImageResource(R.drawable.ic_warning_orange_24dp)
- }
- DialogType.INFO -> {
- textTitle.setTextColor(ContextCompat.getColor(activity, R.color.dialog_info))
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_info))
- icon.setImageResource(R.drawable.ic_info_blue_24dp)
- }
- }
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.TOP)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height_toaster)
- alertDialog.window?.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, height)
- imgClose.setOnClickListener { onClickListener.onClick(this) }
-
- } else {
-
- val dialogBuilder: AlertDialog.Builder = AlertDialog.Builder(activity)
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_toaster, null)
- val imgClose: AppCompatImageView = layoutView.image_close_toaster
- val icon: AppCompatImageView = layoutView.dialog_icon_toaster
- val textTitle: AppCompatTextView = layoutView.text_title_toaster
- val textMessage: AppCompatTextView = layoutView.text_message_toaster
- val verticalView = layoutView.vertical_view_toaster
- textMessage.text = message
- textTitle.text = title
- when (dialogType) {
- DialogType.ERROR -> {
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_error))
- icon.setImageResource(R.drawable.ic_error_red_24dp)
- }
- DialogType.SUCCESS -> {
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_success))
- icon.setImageResource(R.drawable.ic_check_circle_green_24dp)
- }
- DialogType.WARNING -> {
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_warning))
- icon.setImageResource(R.drawable.ic_warning_orange_24dp)
- }
- DialogType.INFO -> {
- verticalView.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_info))
- icon.setImageResource(R.drawable.ic_info_blue_24dp)
- }
- }
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.TOP)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height_toaster)
- alertDialog.window?.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, height)
- imgClose.setOnClickListener { onClickListener.onClick(this) }
- }
-
- }
-
- DialogStyle.RAINBOW -> {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_rainbow, null)
- val icon: AppCompatImageView = layoutView.dialog_icon_rainbow
- val layoutDialog = layoutView.dialog_layout_rainbow
- when (dialogType) {
- DialogType.ERROR -> {
- layoutDialog.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_error))
- icon.setImageResource(R.drawable.ic_error_red_24dp)
- }
- DialogType.SUCCESS -> {
- layoutDialog.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_success))
- icon.setImageResource(R.drawable.ic_check_circle_green_24dp)
- }
- DialogType.WARNING -> {
- layoutDialog.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_warning))
- icon.setImageResource(R.drawable.ic_warning_orange_24dp)
- }
- DialogType.INFO -> {
- layoutDialog.setBackgroundColor(ContextCompat.getColor(activity, R.color.dialog_info))
- icon.setImageResource(R.drawable.ic_info_blue_24dp)
- }
- }
- val imgClose: AppCompatImageView = layoutView.image_close_rainbow
- val textTitle: AppCompatTextView = layoutView.text_title_rainbow
- val textMessage: AppCompatTextView = layoutView.text_message_rainbow
- textMessage.text = message
- textTitle.text = title
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.TOP)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height_emoji_dialog)
- alertDialog.window?.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, height)
- imgClose.setOnClickListener { onClickListener.onClick(this) }
- }
-
- DialogStyle.CONNECTIFY -> {
- val imgClose: AppCompatImageView
- val textTitle: AppCompatTextView
- val textMessage: AppCompatTextView
- val layoutDialog: LinearLayoutCompat
- if (dialogType == DialogType.SUCCESS) {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_connectify_success, null)
- layoutDialog = layoutView.dialog_layout_connectify_success
- imgClose = layoutView.image_close_connectify_success
- textTitle = layoutView.text_title_connectify_success
- textMessage = layoutView.text_message_connectify_success
- } else {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_connectify_error, null)
- layoutDialog = layoutView.dialog_layout_connectify_error
- imgClose = layoutView.image_close_connectify_error
- textTitle = layoutView.text_title_connectify_error
- textMessage = layoutView.text_message_connectify_error
- }
-
- textTitle.text = title
- textMessage.text = message
-
- if (isDarkMode) {
- layoutDialog.setBackgroundColor(ContextCompat.getColor(activity, R.color.dark_background))
- textMessage.setTextColor(ContextCompat.getColor(activity, R.color.md_white_1000))
- }
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.TOP)
- this.chooseAnimation()
- alertDialog.show()
- alertDialog.window?.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT)
- imgClose.setOnClickListener { onClickListener.onClick(this) }
- }
-
-
- DialogStyle.FLASH -> {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_flash, null)
- val btnOk: AppCompatButton = layoutView.btn_action_flash
- val textTitle: AppCompatTextView = layoutView.dialog_title_flash
- val textMessage: AppCompatTextView = layoutView.dialog_message_flash
- val dialogFrame = layoutView.dialog_frame_flash
- val icon: AppCompatImageView = layoutView.img_icon_flash
- if (dialogType == DialogType.SUCCESS) {
- dialogFrame.setBackgroundResource(R.drawable.rounded_green_gradient_bg)
- icon.setImageResource(R.drawable.circle_validation_success)
- } else {
- dialogFrame.setBackgroundResource(R.drawable.rounded_red_gradient_bg)
- icon.setImageResource(R.drawable.circle_validation_error)
- }
- textMessage.text = message
- textTitle.text = title
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.CENTER)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height)
- val width = activity.resources.getDimensionPixelSize(R.dimen.popup_height)
- alertDialog.window?.setLayout(width, height)
- btnOk.setOnClickListener { onClickListener.onClick(this) }
- }
-
- DialogStyle.EMOTION -> {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_emotion, null)
- val icon: AppCompatImageView = layoutView.img_icon_emotion
- val layoutDialog = layoutView.dialog_layout_emotion
- val textTitle: AppCompatTextView = layoutView.dialog_title_emotion
- val textMessage: AppCompatTextView = layoutView.dialog_message_emotion
- val textHour: AppCompatTextView = layoutView.dialog_hour_emotion
- if (dialogType == DialogType.SUCCESS) {
- icon.setImageResource(R.drawable.smiley_success)
- layoutDialog.setBackgroundResource(R.drawable.background_emotion_success)
- } else {
- icon.setImageResource(R.drawable.smiley_error)
- layoutDialog.setBackgroundResource(R.drawable.background_emotion_error)
- }
- val sdf = SimpleDateFormat("HH:mm")
- val hour = sdf.format(Calendar.getInstance().time)
- textMessage.text = message
- textTitle.text = title
- textHour.text = hour
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.CENTER)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height_emotion)
- alertDialog.window?.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, height)
- }
-
- DialogStyle.FLAT -> {
- if (isDarkMode) {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_flat, null)
- val btnOk: AppCompatButton = layoutView.btn_action_flat
- val textTitle: AppCompatTextView = layoutView.dialog_title_flat
- val textMessage: AppCompatTextView = layoutView.dialog_message_flat
- val icon: AppCompatImageView = layoutView.dialog_icon_flat
- val layoutDialog: LinearLayoutCompat = layoutView.dialog_layout_flat
- val frameLayout = layoutView.dialog_frame_flat
- when (dialogType) {
- DialogType.ERROR -> {
- icon.setImageResource(R.drawable.ic_error_red_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_red_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_red)
- }
- DialogType.SUCCESS -> {
- icon.setImageResource(R.drawable.ic_check_circle_green_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_green_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_green)
- }
- DialogType.WARNING -> {
- icon.setImageResource(R.drawable.ic_warning_orange_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_yellow_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_yellow)
- }
- DialogType.INFO -> {
- icon.setImageResource(R.drawable.ic_info_blue_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_blue_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_blue)
- }
- }
- layoutDialog.setBackgroundResource(R.drawable.rounded_dark_bg)
- textTitle.setTextColor(ContextCompat.getColor(activity, R.color.md_white_1000))
- textMessage.setTextColor(ContextCompat.getColor(activity, R.color.md_white_1000))
- textMessage.text = message
- textTitle.text = title
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.CENTER)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height)
- val width = activity.resources.getDimensionPixelSize(R.dimen.popup_height)
- alertDialog.window?.setLayout(width, height)
- btnOk.setOnClickListener { onClickListener.onClick(this) }
-
- } else {
- layoutView = activity.layoutInflater.inflate(R.layout.dialog_flat, null)
- val btnOk: AppCompatButton = layoutView.btn_action_flat
- val textTitle: AppCompatTextView = layoutView.dialog_title_flat
- val textMessage: AppCompatTextView = layoutView.dialog_message_flat
- val icon: AppCompatImageView = layoutView.dialog_icon_flat
- val layoutDialog: LinearLayoutCompat = layoutView.dialog_layout_flat
- val frameLayout = layoutView.dialog_frame_flat
- when (dialogType) {
- DialogType.ERROR -> {
- icon.setImageResource(R.drawable.ic_error_red_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_red_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_red)
- }
- DialogType.SUCCESS -> {
- icon.setImageResource(R.drawable.ic_check_circle_green_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_green_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_green)
- }
- DialogType.WARNING -> {
- icon.setImageResource(R.drawable.ic_warning_orange_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_yellow_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_yellow)
- }
- DialogType.INFO -> {
- icon.setImageResource(R.drawable.ic_info_blue_24dp)
- btnOk.setBackgroundResource(R.drawable.btn_blue_selector)
- frameLayout.setBackgroundResource(R.drawable.rounded_rect_blue)
- }
- }
- layoutDialog.setBackgroundResource(R.drawable.rounded_white_bg)
- textMessage.text = message
- textTitle.text = title
- dialogBuilder.setView(layoutView)
- alertDialog = dialogBuilder.create()
- alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
- alertDialog.window?.setGravity(Gravity.CENTER)
- this.chooseAnimation()
- alertDialog.show()
- val height = activity.resources.getDimensionPixelSize(R.dimen.popup_height)
- val width = activity.resources.getDimensionPixelSize(R.dimen.popup_height)
- alertDialog.window?.setLayout(width, height)
- btnOk.setOnClickListener { onClickListener.onClick(this) }
- }
- }
- }
-
- alertDialog.setCancelable(isCancelable)
- if (gravity != Gravity.NO_GRAVITY) {
- alertDialog.window?.setGravity(gravity)
- }
- return AestheticDialog()
- }
- }
-}
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogAnimation.kt b/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogAnimation.kt
deleted file mode 100644
index 2e68057..0000000
--- a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogAnimation.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.thecode.aestheticdialogs
-
-
-enum class DialogAnimation {
- DEFAULT, SLIDE_UP, SLIDE_DOWN, SLIDE_LEFT, SLIDE_RIGHT, SWIPE_LEFT, SWIPE_RIGHT, IN_OUT, CARD, SHRINK, SPLIT , DIAGONAL , SPIN , WINDMILL , FADE , ZOOM
-}
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogStyle.kt b/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogStyle.kt
deleted file mode 100644
index 66905e3..0000000
--- a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogStyle.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.thecode.aestheticdialogs
-
-
-enum class DialogStyle {
- EMOJI, DRAKE, TOASTER, CONNECTIFY, FLAT, RAINBOW, FLASH, EMOTION
-}
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogType.kt b/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogType.kt
deleted file mode 100644
index 0964010..0000000
--- a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/DialogType.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.thecode.aestheticdialogs
-
-
-enum class DialogType {
- SUCCESS, ERROR, WARNING, INFO
-}
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/OnDialogClickListener.kt b/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/OnDialogClickListener.kt
deleted file mode 100644
index 36f1ba4..0000000
--- a/aestheticdialogs/src/main/java/com/thecode/aestheticdialogs/OnDialogClickListener.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.thecode.aestheticdialogs
-
-
-interface OnDialogClickListener {
- fun onClick(dialog: AestheticDialog.Builder)
-}
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_card_enter.xml b/aestheticdialogs/src/main/res/anim/animate_card_enter.xml
deleted file mode 100644
index 08d116f..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_card_enter.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/aestheticdialogs/src/main/res/anim/animate_card_exit.xml b/aestheticdialogs/src/main/res/anim/animate_card_exit.xml
deleted file mode 100644
index 3f15a8f..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_card_exit.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/anim/animate_diagonal_right_enter.xml b/aestheticdialogs/src/main/res/anim/animate_diagonal_right_enter.xml
deleted file mode 100644
index 9a761d4..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_diagonal_right_enter.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_diagonal_right_exit.xml b/aestheticdialogs/src/main/res/anim/animate_diagonal_right_exit.xml
deleted file mode 100644
index 31f44c8..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_diagonal_right_exit.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_fade_enter.xml b/aestheticdialogs/src/main/res/anim/animate_fade_enter.xml
deleted file mode 100644
index cb7bd98..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_fade_enter.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_fade_exit.xml b/aestheticdialogs/src/main/res/anim/animate_fade_exit.xml
deleted file mode 100644
index eb1eb8d..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_fade_exit.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_in_out_enter.xml b/aestheticdialogs/src/main/res/anim/animate_in_out_enter.xml
deleted file mode 100644
index 7cf051f..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_in_out_enter.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_in_out_exit.xml b/aestheticdialogs/src/main/res/anim/animate_in_out_exit.xml
deleted file mode 100644
index 71b0d81..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_in_out_exit.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_shrink_enter.xml b/aestheticdialogs/src/main/res/anim/animate_shrink_enter.xml
deleted file mode 100644
index 001bb5e..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_shrink_enter.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/aestheticdialogs/src/main/res/anim/animate_shrink_exit.xml b/aestheticdialogs/src/main/res/anim/animate_shrink_exit.xml
deleted file mode 100644
index c87935f..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_shrink_exit.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_down_enter.xml b/aestheticdialogs/src/main/res/anim/animate_slide_down_enter.xml
deleted file mode 100644
index fff98ff..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_down_enter.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_down_exit.xml b/aestheticdialogs/src/main/res/anim/animate_slide_down_exit.xml
deleted file mode 100644
index 19f1854..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_down_exit.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_in_left.xml b/aestheticdialogs/src/main/res/anim/animate_slide_in_left.xml
deleted file mode 100644
index aad8f63..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_in_left.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_left_enter.xml b/aestheticdialogs/src/main/res/anim/animate_slide_left_enter.xml
deleted file mode 100644
index 297dec7..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_left_enter.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_left_exit.xml b/aestheticdialogs/src/main/res/anim/animate_slide_left_exit.xml
deleted file mode 100644
index b7b8501..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_left_exit.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_out_right.xml b/aestheticdialogs/src/main/res/anim/animate_slide_out_right.xml
deleted file mode 100644
index 59e999d..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_out_right.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_up_enter.xml b/aestheticdialogs/src/main/res/anim/animate_slide_up_enter.xml
deleted file mode 100644
index df9b6a6..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_up_enter.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_slide_up_exit.xml b/aestheticdialogs/src/main/res/anim/animate_slide_up_exit.xml
deleted file mode 100644
index e36d087..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_slide_up_exit.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_spin_enter.xml b/aestheticdialogs/src/main/res/anim/animate_spin_enter.xml
deleted file mode 100644
index 78fa7b6..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_spin_enter.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_spin_exit.xml b/aestheticdialogs/src/main/res/anim/animate_spin_exit.xml
deleted file mode 100644
index 9a81df3..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_spin_exit.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_split_enter.xml b/aestheticdialogs/src/main/res/anim/animate_split_enter.xml
deleted file mode 100644
index 7b0ea70..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_split_enter.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/anim/animate_split_exit.xml b/aestheticdialogs/src/main/res/anim/animate_split_exit.xml
deleted file mode 100644
index 9b40487..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_split_exit.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/anim/animate_swipe_left_enter.xml b/aestheticdialogs/src/main/res/anim/animate_swipe_left_enter.xml
deleted file mode 100644
index 06d3c6f..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_swipe_left_enter.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_swipe_left_exit.xml b/aestheticdialogs/src/main/res/anim/animate_swipe_left_exit.xml
deleted file mode 100644
index 121f773..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_swipe_left_exit.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_swipe_right_enter.xml b/aestheticdialogs/src/main/res/anim/animate_swipe_right_enter.xml
deleted file mode 100644
index e1c4c28..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_swipe_right_enter.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_swipe_right_exit.xml b/aestheticdialogs/src/main/res/anim/animate_swipe_right_exit.xml
deleted file mode 100644
index 00678b7..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_swipe_right_exit.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_windmill_enter.xml b/aestheticdialogs/src/main/res/anim/animate_windmill_enter.xml
deleted file mode 100644
index 17edafa..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_windmill_enter.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_windmill_exit.xml b/aestheticdialogs/src/main/res/anim/animate_windmill_exit.xml
deleted file mode 100644
index cd0a9f9..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_windmill_exit.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_zoom_enter.xml b/aestheticdialogs/src/main/res/anim/animate_zoom_enter.xml
deleted file mode 100644
index d6b3668..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_zoom_enter.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/anim/animate_zoom_exit.xml b/aestheticdialogs/src/main/res/anim/animate_zoom_exit.xml
deleted file mode 100644
index 02008bb..0000000
--- a/aestheticdialogs/src/main/res/anim/animate_zoom_exit.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/background_emotion_error.png b/aestheticdialogs/src/main/res/drawable/background_emotion_error.png
deleted file mode 100644
index edeb7fc..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/background_emotion_error.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/background_emotion_success.png b/aestheticdialogs/src/main/res/drawable/background_emotion_success.png
deleted file mode 100644
index 626831a..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/background_emotion_success.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/btn_blue_normal.xml b/aestheticdialogs/src/main/res/drawable/btn_blue_normal.xml
deleted file mode 100644
index f532d24..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_blue_normal.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_blue_pressed.xml b/aestheticdialogs/src/main/res/drawable/btn_blue_pressed.xml
deleted file mode 100644
index 84d420f..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_blue_pressed.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_blue_selector.xml b/aestheticdialogs/src/main/res/drawable/btn_blue_selector.xml
deleted file mode 100644
index c3fc2b1..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_blue_selector.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_green_normal.xml b/aestheticdialogs/src/main/res/drawable/btn_green_normal.xml
deleted file mode 100644
index 4bcec00..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_green_normal.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_green_pressed.xml b/aestheticdialogs/src/main/res/drawable/btn_green_pressed.xml
deleted file mode 100644
index 1ae9b19..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_green_pressed.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_green_selector.xml b/aestheticdialogs/src/main/res/drawable/btn_green_selector.xml
deleted file mode 100644
index 4ecfa5c..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_green_selector.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_red_normal.xml b/aestheticdialogs/src/main/res/drawable/btn_red_normal.xml
deleted file mode 100644
index 8c7357e..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_red_normal.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_red_pressed.xml b/aestheticdialogs/src/main/res/drawable/btn_red_pressed.xml
deleted file mode 100644
index dcdc3cd..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_red_pressed.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_red_selector.xml b/aestheticdialogs/src/main/res/drawable/btn_red_selector.xml
deleted file mode 100644
index 1e096ef..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_red_selector.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_yellow_normal.xml b/aestheticdialogs/src/main/res/drawable/btn_yellow_normal.xml
deleted file mode 100644
index 610e5f9..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_yellow_normal.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_yellow_pressed.xml b/aestheticdialogs/src/main/res/drawable/btn_yellow_pressed.xml
deleted file mode 100644
index 813e8cc..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_yellow_pressed.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/btn_yellow_selector.xml b/aestheticdialogs/src/main/res/drawable/btn_yellow_selector.xml
deleted file mode 100644
index 44efac5..0000000
--- a/aestheticdialogs/src/main/res/drawable/btn_yellow_selector.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/circle_validation_error.png b/aestheticdialogs/src/main/res/drawable/circle_validation_error.png
deleted file mode 100644
index 7b6b01c..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/circle_validation_error.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/circle_validation_success.png b/aestheticdialogs/src/main/res/drawable/circle_validation_success.png
deleted file mode 100644
index f09aebc..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/circle_validation_success.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/drake_error.png b/aestheticdialogs/src/main/res/drawable/drake_error.png
deleted file mode 100644
index f70b7f6..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/drake_error.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/drake_success.png b/aestheticdialogs/src/main/res/drawable/drake_success.png
deleted file mode 100644
index c5c7e64..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/drake_success.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/ic_cancel.xml b/aestheticdialogs/src/main/res/drawable/ic_cancel.xml
deleted file mode 100644
index b3a42f2..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_cancel.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_check_circle_green_24dp.xml b/aestheticdialogs/src/main/res/drawable/ic_check_circle_green_24dp.xml
deleted file mode 100644
index 50203fb..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_check_circle_green_24dp.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_close_gray_24dp.xml b/aestheticdialogs/src/main/res/drawable/ic_close_gray_24dp.xml
deleted file mode 100644
index b24b9c7..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_close_gray_24dp.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_error_red_24dp.xml b/aestheticdialogs/src/main/res/drawable/ic_error_red_24dp.xml
deleted file mode 100644
index 2cc9e64..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_error_red_24dp.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_info_blue_24dp.xml b/aestheticdialogs/src/main/res/drawable/ic_info_blue_24dp.xml
deleted file mode 100644
index 392b48d..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_info_blue_24dp.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_signal_wifi_off_white_24dp.xml b/aestheticdialogs/src/main/res/drawable/ic_signal_wifi_off_white_24dp.xml
deleted file mode 100644
index d822afb..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_signal_wifi_off_white_24dp.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_tick.xml b/aestheticdialogs/src/main/res/drawable/ic_tick.xml
deleted file mode 100644
index c6f0b01..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_tick.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_warning_orange_24dp.xml b/aestheticdialogs/src/main/res/drawable/ic_warning_orange_24dp.xml
deleted file mode 100644
index a257b4b..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_warning_orange_24dp.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/ic_wifi_white_24dp.xml b/aestheticdialogs/src/main/res/drawable/ic_wifi_white_24dp.xml
deleted file mode 100644
index aff45f3..0000000
--- a/aestheticdialogs/src/main/res/drawable/ic_wifi_white_24dp.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/linear_green_gradient_connectify.xml b/aestheticdialogs/src/main/res/drawable/linear_green_gradient_connectify.xml
deleted file mode 100644
index 0dc9a45..0000000
--- a/aestheticdialogs/src/main/res/drawable/linear_green_gradient_connectify.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/linear_red_gradient_connectify.xml b/aestheticdialogs/src/main/res/drawable/linear_red_gradient_connectify.xml
deleted file mode 100644
index 8fb27f8..0000000
--- a/aestheticdialogs/src/main/res/drawable/linear_red_gradient_connectify.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/man_shrugging.png b/aestheticdialogs/src/main/res/drawable/man_shrugging.png
deleted file mode 100644
index 1ab3dfa..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/man_shrugging.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_border_white.xml b/aestheticdialogs/src/main/res/drawable/rounded_border_white.xml
deleted file mode 100644
index 0b83940..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_border_white.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_dark_bg.xml b/aestheticdialogs/src/main/res/drawable/rounded_dark_bg.xml
deleted file mode 100644
index ab29501..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_dark_bg.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_green_gradient_bg.xml b/aestheticdialogs/src/main/res/drawable/rounded_green_gradient_bg.xml
deleted file mode 100644
index 97007ac..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_green_gradient_bg.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_green_gradient_bg_connectify.xml b/aestheticdialogs/src/main/res/drawable/rounded_green_gradient_bg_connectify.xml
deleted file mode 100644
index 870b31b..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_green_gradient_bg_connectify.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_rect_blue.xml b/aestheticdialogs/src/main/res/drawable/rounded_rect_blue.xml
deleted file mode 100644
index 9827ce7..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_rect_blue.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_rect_green.xml b/aestheticdialogs/src/main/res/drawable/rounded_rect_green.xml
deleted file mode 100644
index 8a36bb7..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_rect_green.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_rect_red.xml b/aestheticdialogs/src/main/res/drawable/rounded_rect_red.xml
deleted file mode 100644
index 95733d0..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_rect_red.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_rect_yellow.xml b/aestheticdialogs/src/main/res/drawable/rounded_rect_yellow.xml
deleted file mode 100644
index b648546..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_rect_yellow.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_red_gradient_bg.xml b/aestheticdialogs/src/main/res/drawable/rounded_red_gradient_bg.xml
deleted file mode 100644
index 59dce57..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_red_gradient_bg.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_red_gradient_bg_connectify.xml b/aestheticdialogs/src/main/res/drawable/rounded_red_gradient_bg_connectify.xml
deleted file mode 100644
index 02d46fb..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_red_gradient_bg_connectify.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/drawable/rounded_white_bg.xml b/aestheticdialogs/src/main/res/drawable/rounded_white_bg.xml
deleted file mode 100644
index 8066287..0000000
--- a/aestheticdialogs/src/main/res/drawable/rounded_white_bg.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/drawable/smiley_error.png b/aestheticdialogs/src/main/res/drawable/smiley_error.png
deleted file mode 100644
index aa56075..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/smiley_error.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/smiley_success.png b/aestheticdialogs/src/main/res/drawable/smiley_success.png
deleted file mode 100644
index f83de12..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/smiley_success.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/drawable/thumbs_up_sign.png b/aestheticdialogs/src/main/res/drawable/thumbs_up_sign.png
deleted file mode 100644
index ebe91c9..0000000
Binary files a/aestheticdialogs/src/main/res/drawable/thumbs_up_sign.png and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/font/koho.ttf b/aestheticdialogs/src/main/res/font/koho.ttf
deleted file mode 100644
index 78e04aa..0000000
Binary files a/aestheticdialogs/src/main/res/font/koho.ttf and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/font/koho_bold.ttf b/aestheticdialogs/src/main/res/font/koho_bold.ttf
deleted file mode 100644
index a0123f5..0000000
Binary files a/aestheticdialogs/src/main/res/font/koho_bold.ttf and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/font/koho_italic.ttf b/aestheticdialogs/src/main/res/font/koho_italic.ttf
deleted file mode 100644
index e6cf346..0000000
Binary files a/aestheticdialogs/src/main/res/font/koho_italic.ttf and /dev/null differ
diff --git a/aestheticdialogs/src/main/res/layout/dialog_connectify_error.xml b/aestheticdialogs/src/main/res/layout/dialog_connectify_error.xml
deleted file mode 100644
index 8917dec..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_connectify_error.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/layout/dialog_connectify_success.xml b/aestheticdialogs/src/main/res/layout/dialog_connectify_success.xml
deleted file mode 100644
index 82f9e9e..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_connectify_success.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/layout/dialog_drake_error.xml b/aestheticdialogs/src/main/res/layout/dialog_drake_error.xml
deleted file mode 100644
index 1b20170..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_drake_error.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/layout/dialog_drake_success.xml b/aestheticdialogs/src/main/res/layout/dialog_drake_success.xml
deleted file mode 100644
index 6632386..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_drake_success.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/layout/dialog_emoji.xml b/aestheticdialogs/src/main/res/layout/dialog_emoji.xml
deleted file mode 100644
index fcefbc8..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_emoji.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/layout/dialog_emotion.xml b/aestheticdialogs/src/main/res/layout/dialog_emotion.xml
deleted file mode 100644
index 0162e26..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_emotion.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/layout/dialog_flash.xml b/aestheticdialogs/src/main/res/layout/dialog_flash.xml
deleted file mode 100644
index fef546e..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_flash.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/layout/dialog_flat.xml b/aestheticdialogs/src/main/res/layout/dialog_flat.xml
deleted file mode 100644
index 029e9e7..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_flat.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/aestheticdialogs/src/main/res/layout/dialog_rainbow.xml b/aestheticdialogs/src/main/res/layout/dialog_rainbow.xml
deleted file mode 100644
index 28f181d..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_rainbow.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/layout/dialog_toaster.xml b/aestheticdialogs/src/main/res/layout/dialog_toaster.xml
deleted file mode 100644
index 7e70f4b..0000000
--- a/aestheticdialogs/src/main/res/layout/dialog_toaster.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/values/colors.xml b/aestheticdialogs/src/main/res/values/colors.xml
deleted file mode 100644
index a181442..0000000
--- a/aestheticdialogs/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- #FFFFFF
- #607D8B
- #E53935
- #F9A825
- #1565C0
- #43A047
- #48D865
- #FF6B5F
- #3086EB
- #FFC122
- #EB1F5D
- #61C730
- #2F3032
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/main/res/values/dimens.xml b/aestheticdialogs/src/main/res/values/dimens.xml
deleted file mode 100644
index 52c7f7d..0000000
--- a/aestheticdialogs/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- 18sp
- 10sp
- 10dp
- 30dp
- 50dp
-
- 16dp
- 10dp
- 30dp
-
- 300dp
- 320dp
-
- 100dp
-
- 200dp
- 350dp
- 100dp
- 120dp
- 350dp
-
-
diff --git a/aestheticdialogs/src/main/res/values/integers.xml b/aestheticdialogs/src/main/res/values/integers.xml
deleted file mode 100644
index e406a7a..0000000
--- a/aestheticdialogs/src/main/res/values/integers.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- 200
-
diff --git a/aestheticdialogs/src/main/res/values/strings.xml b/aestheticdialogs/src/main/res/values/strings.xml
deleted file mode 100644
index 90bb307..0000000
--- a/aestheticdialogs/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
- AestheticDialogs
- error
- success
-
diff --git a/aestheticdialogs/src/main/res/values/styles.xml b/aestheticdialogs/src/main/res/values/styles.xml
deleted file mode 100644
index 5c49fad..0000000
--- a/aestheticdialogs/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aestheticdialogs/src/test/java/com/thecode/aestheticdialogs/ExampleUnitTest.kt b/aestheticdialogs/src/test/java/com/thecode/aestheticdialogs/ExampleUnitTest.kt
deleted file mode 100644
index fe780a1..0000000
--- a/aestheticdialogs/src/test/java/com/thecode/aestheticdialogs/ExampleUnitTest.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.thecode.aestheticdialogs
-
-import org.junit.Test
-
-import org.junit.Assert.*
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-class ExampleUnitTest {
- @Test
- fun addition_isCorrect() {
- assertEquals(4, 2 + 2)
- }
-}
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index cc6c03f..b91c4f7 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -7,7 +7,7 @@ plugins {
android {
signingConfigs {
release {
- storeFile file('C:\\Users\\phanh\\Desktop\\mykeystore\\foodify-keystore.jks')
+ storeFile file('D:\\Capstone-Project\\mykeystore\\foodify-keystore.jks')
storePassword 'Phanhuuloi2@@1'
keyAlias 'foodify'
keyPassword 'Phanhuuloi2@@1'
@@ -48,11 +48,16 @@ android {
classpath 'com.google.gms:google-services:4.3.15'
}
}
-
buildFeatures {
viewBinding true
}
+ configurations.implementation {
+ exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
+ exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk7'
+ }
+
+
}
dependencies {
@@ -88,10 +93,14 @@ dependencies {
implementation 'com.github.smarteist:autoimageslider:1.4.0'
implementation 'com.github.bumptech.glide:glide:4.15.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2'
- implementation 'com.github.kojofosu:Quantitizer:1.6.7'
+ implementation 'com.github.kojofosu:Quantitizer:1.6.8'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.github.ome450901:SimpleRatingBar:1.5.1'
implementation 'com.cepheuen.elegant-number-button:lib:1.0.2'
+ implementation 'com.github.SlaVcE14:SJ-Dialog:1.6'
+ implementation 'com.saadahmedev.popup-dialog:popup-dialog:1.0.2'
+ implementation 'com.github.gabriel-TheCode:AestheticDialogs:1.3.6'
+ implementation 'io.github.pilgr:paperdb:2.7.2'
implementation 'com.github.techinessoverloaded:progress-dialog:1.5.1'
implementation 'androidx.browser:browser:1.5.0'
@@ -106,8 +115,4 @@ dependencies {
// ADD the API-only library to all variants
implementation 'com.google.firebase:firebase-appdistribution:16.0.0-beta08'
- implementation(project(':aestheticdialogs'))
- implementation(project(':SJDialog'))
- implementation(project(':popupDialog'))
-
-}
+}
\ No newline at end of file
diff --git a/app/release/foodify.apk b/app/release/foodify.apk
index 9e7fe87..73361b0 100644
Binary files a/app/release/foodify.apk and b/app/release/foodify.apk differ
diff --git a/app/src/main/java/com/capstone/foodify/Common.java b/app/src/main/java/com/capstone/foodify/Common.java
index 7c1c27f..544fdcb 100644
--- a/app/src/main/java/com/capstone/foodify/Common.java
+++ b/app/src/main/java/com/capstone/foodify/Common.java
@@ -33,7 +33,7 @@ import retrofit2.Response;
public class Common {
//https://foodify-backend-production.up.railway.app/
- public static final String BASE_URL = "https://foodify-backend-production.up.railway.app/api/";
+ public static final String BASE_URL = "https://foodify.up.railway.app/api/";
public static String FCM_TOKEN = null;
public static Location CURRENT_LOCATION = null;
public static FirebaseUser FIREBASE_USER = null;
diff --git a/build.gradle b/build.gradle
index a5352d2..954ca80 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,11 +1,8 @@
buildscript {
- ext.kotlin_version = '1.6.20'
dependencies {
classpath 'com.google.gms:google-services:4.3.15'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
-
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index b141790..faa8019 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Wed Feb 08 09:57:34 ICT 2023
+#Tue May 16 21:58:31 ICT 2023
distributionBase=GRADLE_USER_HOME
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
-zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/popupDialog/.gitignore b/popupDialog/.gitignore
deleted file mode 100644
index 42afabf..0000000
--- a/popupDialog/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/popupDialog/build.gradle b/popupDialog/build.gradle
deleted file mode 100644
index d640c7c..0000000
--- a/popupDialog/build.gradle
+++ /dev/null
@@ -1,112 +0,0 @@
-plugins {
- id 'com.android.library'
- id 'maven-publish'
- id 'signing'
-}
-
-android {
- namespace 'com.saadahmedsoft.popupdialog'
- compileSdk 33
-
- defaultConfig {
- minSdk 21
- targetSdk 33
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
- }
-
- publishing {
- singleVariant("release") {
- // if you don't want sources/javadoc, remove these lines
- withSourcesJar()
- withJavadocJar()
- }
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-}
-
-task sourceJar(type: Jar) {
- from android.sourceSets.main.java.srcDirs
- classifier "sources"
-}
-
-def artifactVersion = "1.0.2"
-
-publishing {
- publications {
- maven(MavenPublication) {
- groupId 'com.saadahmedev.popup-dialog'
- artifactId 'popup-dialog'
- version artifactVersion
- artifact(sourceJar)
- artifact("$buildDir/outputs/aar/popupDialog-release.aar")
-
- pom {
- name = 'Android Popup Dialog'
- description = 'A custom android popup dialog library which provides you a lot of popup dialog with and without animation'
- url = 'https://github.com/saadahmedscse/Android-Popup-Dialog'
-
- withXml {
- def node = asNode().appendNode('dependencies').appendNode('dependency')
- node.appendNode('groupId', 'com.airbnb.android')
- node.appendNode('artifactId', 'lottie')
- node.appendNode('version', '5.2.0')
- node.appendNode('scope', 'compile')
- }
-
- licenses {
- license {
- name = 'The Apache License, Version 2.0'
- url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- }
- }
- developers {
- developer {
- id = 'saadahmedscse'
- name = 'Saad Ahmed'
- email = 'saadahmedscse@gmail.com'
- }
- }
- scm {
- connection = 'scm:git:git://github.com/saadahmedscse/Android-Popup-Dialog.git'
- developerConnection = 'scm:git:ssh://github.com:saadahmedscse/Android-Popup-Dialog.git'
- url = 'https://github.com/saadahmedscse/Android-Popup-Dialog'
- }
- }
- }
- }
- repositories {
- maven {
- def releaseUrl = "https://s01.oss.sonatype.org/content/repositories/releases/"
- def snapshotUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
- url = artifactVersion.endsWith('SNAPSHOT') ? snapshotUrl : releaseUrl
-
- credentials {
- username("username")
- password("password")
- }
- }
- }
-}
-
-dependencies {
- implementation 'androidx.appcompat:appcompat:1.5.1'
- implementation 'com.google.android.material:material:1.6.1'
-
- implementation "com.airbnb.android:lottie:5.2.0"
-}
-
-signing {
- sign configurations.archives
-}
\ No newline at end of file
diff --git a/popupDialog/consumer-rules.pro b/popupDialog/consumer-rules.pro
deleted file mode 100644
index e69de29..0000000
diff --git a/popupDialog/demos/dialog_alert.gif b/popupDialog/demos/dialog_alert.gif
deleted file mode 100644
index dd27c8c..0000000
Binary files a/popupDialog/demos/dialog_alert.gif and /dev/null differ
diff --git a/popupDialog/demos/dialog_android_default.png b/popupDialog/demos/dialog_android_default.png
deleted file mode 100644
index 8511b12..0000000
Binary files a/popupDialog/demos/dialog_android_default.png and /dev/null differ
diff --git a/popupDialog/demos/dialog_failed.gif b/popupDialog/demos/dialog_failed.gif
deleted file mode 100644
index ea42268..0000000
Binary files a/popupDialog/demos/dialog_failed.gif and /dev/null differ
diff --git a/popupDialog/demos/dialog_ios.png b/popupDialog/demos/dialog_ios.png
deleted file mode 100644
index 5a2407f..0000000
Binary files a/popupDialog/demos/dialog_ios.png and /dev/null differ
diff --git a/popupDialog/demos/dialog_lottie_animation.gif b/popupDialog/demos/dialog_lottie_animation.gif
deleted file mode 100644
index 394cef7..0000000
Binary files a/popupDialog/demos/dialog_lottie_animation.gif and /dev/null differ
diff --git a/popupDialog/demos/dialog_progress.gif b/popupDialog/demos/dialog_progress.gif
deleted file mode 100644
index 617e0d9..0000000
Binary files a/popupDialog/demos/dialog_progress.gif and /dev/null differ
diff --git a/popupDialog/demos/dialog_standard.png b/popupDialog/demos/dialog_standard.png
deleted file mode 100644
index ba2d85d..0000000
Binary files a/popupDialog/demos/dialog_standard.png and /dev/null differ
diff --git a/popupDialog/demos/dialog_success.gif b/popupDialog/demos/dialog_success.gif
deleted file mode 100644
index 17f4ccb..0000000
Binary files a/popupDialog/demos/dialog_success.gif and /dev/null differ
diff --git a/popupDialog/proguard-rules.pro b/popupDialog/proguard-rules.pro
deleted file mode 100644
index 481bb43..0000000
--- a/popupDialog/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/popupDialog/secring.gpg b/popupDialog/secring.gpg
deleted file mode 100644
index d0fe5e0..0000000
Binary files a/popupDialog/secring.gpg and /dev/null differ
diff --git a/popupDialog/src/main/AndroidManifest.xml b/popupDialog/src/main/AndroidManifest.xml
deleted file mode 100644
index a5918e6..0000000
--- a/popupDialog/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/CreateDialog.java b/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/CreateDialog.java
deleted file mode 100644
index 0d858f6..0000000
--- a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/CreateDialog.java
+++ /dev/null
@@ -1,634 +0,0 @@
-/*
- * Copyright 2022 Saad Ahmed
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.saadahmedsoft.popupdialog;
-
-import android.annotation.SuppressLint;
-import android.app.Dialog;
-import android.content.Context;
-import android.graphics.Color;
-import android.graphics.PorterDuff;
-import android.graphics.drawable.ColorDrawable;
-import android.os.Handler;
-import android.widget.ImageView;
-import android.widget.ProgressBar;
-import android.widget.TextView;
-
-import androidx.annotation.ColorInt;
-import androidx.annotation.ColorRes;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.LayoutRes;
-import androidx.annotation.Nullable;
-import androidx.annotation.RawRes;
-import androidx.appcompat.app.AlertDialog;
-import androidx.constraintlayout.widget.ConstraintLayout;
-import androidx.core.content.ContextCompat;
-
-import com.airbnb.lottie.LottieAnimationView;
-import com.saadahmedsoft.popupdialog.listener.OnDialogButtonClickListener;
-
-public class CreateDialog {
-
- /**
- * Create Dialog class.
- * Created by Saad Ahmed on 17-May-2022.
- * A class which creates many kind of dialogs which you can modify easily.
- */
-
- @SuppressLint("StaticFieldLeak")
- private static CreateDialog instance = null;
- private final Context context;
- private final Styles style;
- private final Dialog dialog;
- private String heading, description, positiveButtonText, negativeButtonText, dismissButtonText, lottieFile;
- private boolean cancelable = true;
- @ColorInt
- @Nullable
- private Integer tint;
- @Nullable
- private Integer lottieRepeatCount;
- @Nullable
- private Float lottieAnimationSpeed;
- @Nullable
- private Long progressDialogTimeout;
- @RawRes
- @Nullable
- private Integer lottieRaw;
- @ColorRes
- @Nullable
- private Integer positiveButtonTextColor, negativeButtonTextColor, dismissButtonTextColor, headingTextColor, descriptionTextColor, iconTint;
- @DrawableRes
- @Nullable
- private Integer icon, dialogBackground, positiveButtonBackground, negativeButtonBackground, dismissButtonBackground;
-
- /**
- * Private constructor of create dialog class
- * @param context is required for some use cases
- * @param style is required to create the dialog
- * @param dialog is required to modify it
- */
-
- private CreateDialog(Context context, Styles style, Dialog dialog) {
- this.context = context;
- this.style = style;
- this.dialog = dialog;
- }
-
- /**
- * Static function to get instance of create dialog class
- * @param context is required to create instance of create dialog class
- * @param style is required to create the dialog
- * @param dialog is required to modify it later
- * @return instance of create dialog class
- */
-
- public static CreateDialog getInstance(Context context, Styles style, Dialog dialog) {
- if (instance == null) {
- instance = new CreateDialog(context, style, dialog);
- }
- return instance;
- }
-
- /**
- * Heading will be shown as dialog heading
- * @param heading is not required. The dialog heading will be blank if the heading become null
- * @return instance of create dialog class
- */
-
- public CreateDialog setHeading(String heading) {
- this.heading = heading;
- return instance;
- }
-
- /**
- * Description will be shown as dialog description
- * @param description is not required. The dialog description will be blank if the description become null
- * @return instance of create dialog class
- */
-
- public CreateDialog setDescription(String description) {
- this.description = description;
- return instance;
- }
-
- /**
- * This String will be shown as positive button text
- * @param positiveButtonText is not required. If it become null then the default value "Submit" will be shown as positive button text
- * @return instance of create dialog class
- */
-
- public CreateDialog setPositiveButtonText(String positiveButtonText) {
- this.positiveButtonText = positiveButtonText;
- return instance;
- }
-
- /**
- * This String will be shown as negative button text
- * @param negativeButtonText is not required. If it become null then the default value "Cancel" will be shown as negative button text
- * @return instance of create dialog class
- */
-
- public CreateDialog setNegativeButtonText(String negativeButtonText) {
- this.negativeButtonText = negativeButtonText;
- return instance;
- }
-
- /**
- * This String will be shown as dismiss button text
- * @param dismissButtonText is not required. If it become null then the default value "Dismiss" will be shown as dismiss button text
- * @return instance of create dialog class
- */
-
- public CreateDialog setDismissButtonText(String dismissButtonText) {
- this.dismissButtonText = dismissButtonText;
- return instance;
- }
-
- /**
- * This color will be shown as positive button text color
- * @param color is not required. If it become null then the default color "#FFFFFF" will be shown as positive button text color
- * @return instance of create dialog class
- */
-
- public CreateDialog setPositiveButtonTextColor(@ColorRes int color) {
- this.positiveButtonTextColor = color;
- return instance;
- }
-
- /**
- * This color will be shown as negative button text color
- * @param color is not required. If it become null then the default color "#FFFFFF" will be shown as negative button text color
- * @return instance of create dialog class
- */
-
- public CreateDialog setNegativeButtonTextColor(@ColorRes int color) {
- this.negativeButtonTextColor = color;
- return instance;
- }
-
- /**
- * This color will be shown as dismiss button text color
- * @param color is not required. If it become null then the default color "#202020" will be shown as dismiss button text color
- * @return instance of create dialog class
- */
-
- public CreateDialog setDismissButtonTextColor(@ColorRes int color) {
- this.dismissButtonTextColor = color;
- return instance;
- }
-
- /**
- * This background will be shown as positive button background
- * @param background is not required. If it become null then the default background "bg_blue_10" will be shown as positive button background
- * @return instance of create dialog class
- */
-
- public CreateDialog setPositiveButtonBackground(@DrawableRes int background) {
- this.positiveButtonBackground = background;
- return instance;
- }
-
- /**
- * This background will be shown as negative button background
- * @param background is not required. If it become null then the default background "bg_light_grey_10" will be shown as negative button background
- * @return instance of create dialog class
- */
-
- public CreateDialog setNegativeButtonBackground(@DrawableRes int background) {
- this.negativeButtonBackground = background;
- return instance;
- }
-
- /**
- * This background will be shown as dismiss button background
- * @param background is not required. If it become null then the default background "bg_dark_grey_10" will be shown as dismiss button background
- * @return instance of create dialog class
- */
-
- public CreateDialog setDismissButtonBackground(@DrawableRes int background) {
- this.dismissButtonBackground = background;
- return instance;
- }
-
- /**
- * This icon will be shown as standard dialog icon
- * @param icon is required. If it become null then the default icon "ic_home" will be shown as standard dialog icon
- * @return instance of create dialog class
- */
-
- public CreateDialog setPopupDialogIcon(@DrawableRes int icon) {
- this.icon = icon;
- return instance;
- }
-
- /**
- * This icon tint will be shown as standard dialog icon color
- * @param iconTint is required. If it become null then the default color "#000000" will be shown as standard dialog icon color
- * @return instance of create dialog class
- */
-
- public CreateDialog setPopupDialogIconTint(@ColorRes int iconTint) {
- this.iconTint = iconTint;
- return instance;
- }
-
- /**
- * This cancelable is a boolean defines the is is cancelable or not while touching outside
- * @param cancelable is not required. If it become null then the default value "true" will be defined as cancelable
- * @return instance of create dialog class
- */
-
- public CreateDialog setCancelable(boolean cancelable) {
- this.cancelable = cancelable;
- this.dialog.setCancelable(cancelable);
- return instance;
- }
-
- /**
- * This color will be shown as heading text color
- * @param color is not required. If it become null then the default color "#202020" will be shown as heading text color
- * @return instance of create dialog class
- */
-
- public CreateDialog setHeadingTextColor(@ColorRes int color) {
- this.headingTextColor = color;
- return instance;
- }
-
- /**
- * This color will be shown as description text color
- * @param color is not required. If it become null then the default color "#202020" will be shown as description text color
- * @return instance of create dialog class
- */
-
- public CreateDialog setDescriptionTextColor(@ColorRes int color) {
- this.descriptionTextColor = color;
- return instance;
- }
-
- /**
- * This background will be shown as the dialog parent layout background
- * @param background is not required. If it become null then the default background "bg_white_10" will be shown as dialog parent layout background
- * @return instance of create dialog class
- */
-
- public CreateDialog setDialogBackground(@DrawableRes int background) {
- this.dialogBackground = background;
- return instance;
- }
-
- /**
- * This color will be shown as the progress dialog tint
- * @param tint is not required. If it become null then the default color "#215C5C" will be shown as progress dialog tint
- * @return instance of create dialog class
- */
-
- public CreateDialog setProgressDialogTint(@ColorInt int tint) {
- this.tint = tint;
- return instance;
- }
-
- /**
- * Dialog will be closed after the timeout
- * @param seconds is not required. If it become null then the dialog will not close automatically
- * @return instance of create dialog class
- */
-
- public CreateDialog setTimeout(long seconds) {
- new Handler().postDelayed(dialog::dismiss, seconds * 1000);
- return instance;
- }
-
- /**
- * This asset name will be the lottie animation name in asset folder
- * @param assetName or rawRes is required. If it become null then the lottie animation progress bar will not show
- * @return instance of create dialog class
- */
-
- public CreateDialog setLottieAssetName(String assetName) {
- this.lottieFile = assetName;
- return instance;
- }
-
- /**
- * This rawRes will be the lottie animation resource in raw folder
- * @param rawRes or assetName is required. If it become null then the lottie animation progress bar will not show
- * @return instance of create dialog class
- */
-
- public CreateDialog setLottieRawRes(@RawRes int rawRes) {
- this.lottieRaw = rawRes;
- return instance;
- }
-
- /**
- * This repeatCount will define how many times will the animation become repeated
- * @param repeatCount is not required. If it become null then the lottie animation will be played only once
- * @return instance of create dialog class
- */
-
- public CreateDialog setLottieRepeatCount(int repeatCount) {
- this.lottieRepeatCount = repeatCount;
- return instance;
- }
-
- /**
- * This speed will define how much speed of the animation animate will be
- * @param speed is not required. If it become null then the lottie animation will animate with it's default speed
- * @return instance of create dialog class
- */
-
- public CreateDialog setLottieAnimationSpeed(float speed) {
- this.lottieAnimationSpeed = speed;
- return instance;
- }
-
- /**
- * This timeout defines how much time will the dialog be visible
- * @param seconds is not required. If it become null then the progress of lottie progress dialog will not close by itself
- * @return instance of create dialog class
- */
-
- public CreateDialog setLottieDialogTimeout(long seconds) {
- this.progressDialogTimeout = seconds;
- return instance;
- }
-
- /**
- * This function will show the progress dialogs [Styles.PROGRESS or Styles.LOTTIE_ANIMATION]
- */
-
- public void showDialog() {
- switch (style) {
- case PROGRESS: {
- showProgressDialog(R.layout.dialog_progress);
- break;
- }
- case LOTTIE_ANIMATION: {
- showProgressDialog(R.layout.dialog_lottie);
- break;
- }
- }
- }
-
- /**
- * This function will show the popup dialogs [Styles.SUCCESS or Styles.IOS or Styles.STANDARD etc.]
- * @param listener is required to get the callback on positive or negative or dismiss button clicked
- */
-
- public void showDialog(OnDialogButtonClickListener listener) {
- switch (style) {
- case ANDROID_DEFAULT: {
- showAlertDialog(listener);
- break;
- }
- case IOS: {
- dialogStyleOne(R.layout.dialog_ios, listener);
- show();
- break;
- }
- case STANDARD: {
- dialogStyleTwo(R.layout.dialog_standard, listener);
- show();
- break;
- }
- case SUCCESS: {
- dialogStyleThree(Styles.SUCCESS, listener);
- show();
- break;
- }
- case FAILED: {
- dialogStyleThree(Styles.FAILED, listener);
- show();
- break;
- }
- case ALERT: {
- dialogStyleThree(Styles.ALERT, listener);
- show();
- break;
- }
- }
- }
-
- /**
- * This is a private function will show the dialog it it's not showing
- */
-
- private void show() {
- if (!dialog.isShowing()) {
- instance = null;
- dialog.show();
- }
- }
-
- /**
- * This is a type function of progress dialogs only. e.g: Default of Lottie
- * @param layout is required for the dialog content view
- */
-
- private void showProgressDialog(@LayoutRes int layout) {
- setContentView(layout);
- if (tint != null && style == Styles.PROGRESS) {
- ProgressBar progressBar = dialog.findViewById(R.id.progress_bar);
- progressBar.getIndeterminateDrawable().setColorFilter(tint, PorterDuff.Mode.SRC_IN);
- }
- if (style == Styles.LOTTIE_ANIMATION) {
- LottieAnimationView lottieAnimation = dialog.findViewById(R.id.lottie_animation_view);
- if (lottieFile != null) {
- lottieAnimation.setAnimation(lottieFile);
- }
- if (lottieRaw != null) {
- lottieAnimation.setAnimation(lottieRaw);
- }
- if (lottieRepeatCount != null) {
- lottieAnimation.setRepeatMode(lottieRepeatCount);
- }
- if (lottieAnimationSpeed != null) {
- lottieAnimation.setSpeed(lottieAnimationSpeed);
- }
- }
- if (progressDialogTimeout != null) {
- new Handler().postDelayed(dialog::dismiss, progressDialogTimeout);
- }
- dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
- show();
- }
-
- /**
- * This function will show the android default alert dialog
- * @param listener is required to get the callback on positive or negative button clicked
- */
-
- private void showAlertDialog(OnDialogButtonClickListener listener) {
- AlertDialog.Builder alertDialog = new AlertDialog.Builder(context)
- .setTitle(heading)
- .setMessage(description)
- .setPositiveButton(positiveButtonText == null ? "Submit" : positiveButtonText, (dialogInterface, i) -> listener.onPositiveClicked(dialog))
- .setNegativeButton(negativeButtonText == null ? "Cancel" : negativeButtonText, ((dialogInterface, i) -> listener.onNegativeClicked(dialog)));
- alertDialog.setCancelable(cancelable);
- alertDialog.show();
- }
-
- /**
- * This a type function of popup dialogs without any kind of icon
- * @param layout is required for the dialog content view
- * @param listener is required to get the callback on positive or negative or dismiss button clicked
- */
-
- private void dialogStyleOne(@LayoutRes int layout, OnDialogButtonClickListener listener) {
- setContentView(layout);
- TextView heading, description, btnNegative, btnPositive;
- ConstraintLayout root;
-
- root = dialog.findViewById(R.id.root_layout);
- heading = dialog.findViewById(R.id.tv_heading);
- description = dialog.findViewById(R.id.tv_description);
- btnNegative = dialog.findViewById(R.id.btn_negative);
- btnPositive = dialog.findViewById(R.id.btn_positive);
-
- if (this.heading != null) {
- heading.setText(this.heading);
- }
- if (this.description != null) {
- description.setText(this.description);
- }
- if (dialogBackground != null) {
- root.setBackgroundResource(dialogBackground);
- }
- if (positiveButtonText != null) {
- btnPositive.setText(positiveButtonText);
- }
- if (negativeButtonText != null) {
- btnNegative.setText(negativeButtonText);
- }
- if (positiveButtonTextColor != null) {
- btnPositive.setTextColor(ContextCompat.getColor(context, positiveButtonTextColor));
- }
- if (negativeButtonTextColor != null) {
- btnNegative.setTextColor(ContextCompat.getColor(context, negativeButtonTextColor));
- }
- if (positiveButtonBackground != null) {
- btnPositive.setBackgroundResource(positiveButtonBackground);
- }
- if (negativeButtonBackground != null) {
- btnNegative.setBackgroundResource(negativeButtonBackground);
- }
- if (headingTextColor != null) {
- heading.setTextColor(ContextCompat.getColor(context, headingTextColor));
- }
- if (descriptionTextColor != null) {
- description.setTextColor(ContextCompat.getColor(context, descriptionTextColor));
- }
-
- btnPositive.setOnClickListener(view -> listener.onPositiveClicked(dialog));
- btnNegative.setOnClickListener(view -> listener.onNegativeClicked(dialog));
-
- dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
- }
-
- /**
- * This a type function of popup dialogs with any kind of icon
- * @param layout is required for the dialog content view
- * @param listener is required to get the callback on positive or negative or dismiss button clicked
- */
-
- private void dialogStyleTwo(@LayoutRes int layout, OnDialogButtonClickListener listener) {
- dialogStyleOne(layout, listener);
- ImageView icon = dialog.findViewById(R.id.iv_icon);
-
- if (this.icon != null) {
- icon.setImageResource(this.icon);
- }
- if (this.iconTint != null) {
- icon.setColorFilter(ContextCompat.getColor(context, iconTint), android.graphics.PorterDuff.Mode.SRC_IN);
- }
- }
-
- /**
- * This a type function of popup dialogs with lottie animation icon
- * @param style is to create the dialog
- * @param listener is required to get the callback on positive or negative or dismiss button clicked
- */
-
- private void dialogStyleThree(Styles style, OnDialogButtonClickListener listener) {
- setContentView(R.layout.dialog_success_failed_alert);
-
- LottieAnimationView icon = dialog.findViewById(R.id.lottie_icon);
- ConstraintLayout root = dialog.findViewById(R.id.root_layout);
- TextView heading, description, btnDismiss;
- heading = dialog.findViewById(R.id.tv_heading);
- description = dialog.findViewById(R.id.tv_description);
- btnDismiss = dialog.findViewById(R.id.btn_dismiss);
-
- btnDismiss.setOnClickListener(view -> listener.onDismissClicked(dialog));
-
- if (this.heading != null) {
- heading.setText(this.heading);
- }
- if (this.description != null) {
- description.setText(this.description);
- }
- if (dialogBackground != null) {
- root.setBackgroundResource(dialogBackground);
- }
- if (dismissButtonText != null) {
- btnDismiss.setText(dismissButtonText);
- }
- if (dismissButtonTextColor != null) {
- btnDismiss.setTextColor(ContextCompat.getColor(context, dismissButtonTextColor));
- }
- if (headingTextColor != null) {
- heading.setTextColor(ContextCompat.getColor(context, headingTextColor));
- }
- if (descriptionTextColor != null) {
- description.setTextColor(ContextCompat.getColor(context, descriptionTextColor));
- }
-
- switch (style) {
- case SUCCESS: {
- icon.setAnimation(R.raw.success);
- btnDismiss.setBackgroundResource(R.drawable.ripple_bg_dark_grey_10);
- break;
- }
- case FAILED: {
- icon.setAnimation(R.raw.failed);
- btnDismiss.setBackgroundResource(R.drawable.ripple_bg_red_10);
- break;
- }
- case ALERT: {
- icon.setAnimation(R.raw.warning);
- if (dismissButtonTextColor == null) btnDismiss.setTextColor(ContextCompat.getColor(context, R.color.colorDarkGrey));
- btnDismiss.setBackgroundResource(R.drawable.ripple_bg_yellow_10);
- break;
- }
- }
-
- if (dismissButtonBackground != null) {
- btnDismiss.setBackgroundResource(dismissButtonBackground);
- }
-
- dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
- }
-
- /**
- * This function will set the layout content to the dialog
- * @param layout is required to set the content view in dialog
- */
-
- private void setContentView(@LayoutRes int layout) {
- dialog.setContentView(layout);
- }
-}
diff --git a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/PopupDialog.java b/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/PopupDialog.java
deleted file mode 100644
index d220944..0000000
--- a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/PopupDialog.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright 2022 Saad Ahmed
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.saadahmedsoft.popupdialog;
-
-import android.annotation.SuppressLint;
-import android.app.Dialog;
-import android.content.Context;
-
-import androidx.annotation.Nullable;
-
-public class PopupDialog {
-
- /**
- * Popup Dialog class.
- * Created by Saad Ahmed on 17-May-2022.
- * Github: https://github.com/saadahmedscse/Android-Popup-Dialog
- * A custom android popup dialog library which provides you a lot of popup dialog and progress dialog with and without animation
- */
-
- @Nullable
- private final Dialog dialog;
- private final Context context;
- @SuppressLint("StaticFieldLeak")
- private static PopupDialog instance = null;
-
- /**
- * Private constructor of popup dialog
- * @param context is required to create instance of dialog
- */
-
- private PopupDialog(Context context) {
- this.context = context;
- dialog = new Dialog(context);
- }
-
- /**
- * Static function to get instance of popup dialog class
- * @param context is required to create instance of popup dialog class
- * @return instance of popup dialog class
- */
-
- public static PopupDialog getInstance(Context context) {
- if (instance == null) {
- instance = new PopupDialog(context);
- }
- return instance;
- }
-
- /**
- * setStyle function will set the style which you want
- * @param style is required to create instance of create dialog class
- * @return instance of create dialog class
- */
-
- public CreateDialog setStyle(Styles style) {
- instance = null;
- return CreateDialog.getInstance(context, style, dialog);
- }
-
- /**
- * Dismiss the dialog if it is showing
- */
-
- public void dismissDialog() {
- if (dialog != null && dialog.isShowing()) {
- dialog.dismiss();
- }
- }
-}
diff --git a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/Styles.java b/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/Styles.java
deleted file mode 100644
index 3b76918..0000000
--- a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/Styles.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2022 Saad Ahmed
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.saadahmedsoft.popupdialog;
-
-/**
- * Dialog Style Enum.
- * Created by Saad Ahmed on 17-Oct-2022.
- * This enum will give user's a lot of styles to be implemented
- */
-
-public enum Styles {
- PROGRESS, IOS, ANDROID_DEFAULT, STANDARD, LOTTIE_ANIMATION, SUCCESS, FAILED, ALERT
-}
diff --git a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/listener/OnDialogButtonClickListener.java b/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/listener/OnDialogButtonClickListener.java
deleted file mode 100644
index ef4d610..0000000
--- a/popupDialog/src/main/java/com/saadahmedsoft/popupdialog/listener/OnDialogButtonClickListener.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2022 Saad Ahmed
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.saadahmedsoft.popupdialog.listener;
-
-import android.app.Dialog;
-
-/**
- * Dialog Button Click Callback Class.
- * Created by Saad Ahmed on 17-Oct-2022.
- * This abstract class will give user's a callback of dialog button click
- */
-
-public abstract class OnDialogButtonClickListener {
- public void onPositiveClicked(Dialog dialog) {
- dismiss(dialog);
- }
- public void onNegativeClicked(Dialog dialog) {
- dismiss(dialog);
- }
- public void onDismissClicked(Dialog dialog) {
- dialog.dismiss();
- }
-
- /**
- * Dismiss the dialog by default on method call using super keyword
- * @param dialog is required to check if nonnull and isShowing
- */
-
- private void dismiss(Dialog dialog) {
- if (dialog != null && dialog.isShowing()) {
- dialog.dismiss();
- }
- }
-}
diff --git a/popupDialog/src/main/res/drawable/bg_blue_10.xml b/popupDialog/src/main/res/drawable/bg_blue_10.xml
deleted file mode 100644
index b5b99bb..0000000
--- a/popupDialog/src/main/res/drawable/bg_blue_10.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/bg_dark_grey_10.xml b/popupDialog/src/main/res/drawable/bg_dark_grey_10.xml
deleted file mode 100644
index 747b86f..0000000
--- a/popupDialog/src/main/res/drawable/bg_dark_grey_10.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/bg_light_grey_10.xml b/popupDialog/src/main/res/drawable/bg_light_grey_10.xml
deleted file mode 100644
index 5350340..0000000
--- a/popupDialog/src/main/res/drawable/bg_light_grey_10.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/bg_red_10.xml b/popupDialog/src/main/res/drawable/bg_red_10.xml
deleted file mode 100644
index 1e95f19..0000000
--- a/popupDialog/src/main/res/drawable/bg_red_10.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/bg_white_10.xml b/popupDialog/src/main/res/drawable/bg_white_10.xml
deleted file mode 100644
index c5df582..0000000
--- a/popupDialog/src/main/res/drawable/bg_white_10.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/bg_yellow_10.xml b/popupDialog/src/main/res/drawable/bg_yellow_10.xml
deleted file mode 100644
index f7d5775..0000000
--- a/popupDialog/src/main/res/drawable/bg_yellow_10.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/ic_home.png b/popupDialog/src/main/res/drawable/ic_home.png
deleted file mode 100644
index 6ca2f97..0000000
Binary files a/popupDialog/src/main/res/drawable/ic_home.png and /dev/null differ
diff --git a/popupDialog/src/main/res/drawable/ripple_bg_blue_10.xml b/popupDialog/src/main/res/drawable/ripple_bg_blue_10.xml
deleted file mode 100644
index 9c32643..0000000
--- a/popupDialog/src/main/res/drawable/ripple_bg_blue_10.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/ripple_bg_dark_grey_10.xml b/popupDialog/src/main/res/drawable/ripple_bg_dark_grey_10.xml
deleted file mode 100644
index b3fba7c..0000000
--- a/popupDialog/src/main/res/drawable/ripple_bg_dark_grey_10.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/ripple_bg_light_grey_10.xml b/popupDialog/src/main/res/drawable/ripple_bg_light_grey_10.xml
deleted file mode 100644
index 72bd66d..0000000
--- a/popupDialog/src/main/res/drawable/ripple_bg_light_grey_10.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/ripple_bg_red_10.xml b/popupDialog/src/main/res/drawable/ripple_bg_red_10.xml
deleted file mode 100644
index 6958e3c..0000000
--- a/popupDialog/src/main/res/drawable/ripple_bg_red_10.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/ripple_bg_white_10.xml b/popupDialog/src/main/res/drawable/ripple_bg_white_10.xml
deleted file mode 100644
index 7b60691..0000000
--- a/popupDialog/src/main/res/drawable/ripple_bg_white_10.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/drawable/ripple_bg_yellow_10.xml b/popupDialog/src/main/res/drawable/ripple_bg_yellow_10.xml
deleted file mode 100644
index b4d6445..0000000
--- a/popupDialog/src/main/res/drawable/ripple_bg_yellow_10.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/font/bold.ttf b/popupDialog/src/main/res/font/bold.ttf
deleted file mode 100644
index 43da14d..0000000
Binary files a/popupDialog/src/main/res/font/bold.ttf and /dev/null differ
diff --git a/popupDialog/src/main/res/font/koho.ttf b/popupDialog/src/main/res/font/koho.ttf
deleted file mode 100644
index 78e04aa..0000000
Binary files a/popupDialog/src/main/res/font/koho.ttf and /dev/null differ
diff --git a/popupDialog/src/main/res/font/koho_bold.ttf b/popupDialog/src/main/res/font/koho_bold.ttf
deleted file mode 100644
index a0123f5..0000000
Binary files a/popupDialog/src/main/res/font/koho_bold.ttf and /dev/null differ
diff --git a/popupDialog/src/main/res/font/koho_italic.ttf b/popupDialog/src/main/res/font/koho_italic.ttf
deleted file mode 100644
index e6cf346..0000000
Binary files a/popupDialog/src/main/res/font/koho_italic.ttf and /dev/null differ
diff --git a/popupDialog/src/main/res/font/medium.ttf b/popupDialog/src/main/res/font/medium.ttf
deleted file mode 100644
index ac0f908..0000000
Binary files a/popupDialog/src/main/res/font/medium.ttf and /dev/null differ
diff --git a/popupDialog/src/main/res/font/regular.ttf b/popupDialog/src/main/res/font/regular.ttf
deleted file mode 100644
index ddf4bfa..0000000
Binary files a/popupDialog/src/main/res/font/regular.ttf and /dev/null differ
diff --git a/popupDialog/src/main/res/layout/dialog_ios.xml b/popupDialog/src/main/res/layout/dialog_ios.xml
deleted file mode 100644
index 023e70b..0000000
--- a/popupDialog/src/main/res/layout/dialog_ios.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/layout/dialog_lottie.xml b/popupDialog/src/main/res/layout/dialog_lottie.xml
deleted file mode 100644
index be64a93..0000000
--- a/popupDialog/src/main/res/layout/dialog_lottie.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/layout/dialog_progress.xml b/popupDialog/src/main/res/layout/dialog_progress.xml
deleted file mode 100644
index 767476a..0000000
--- a/popupDialog/src/main/res/layout/dialog_progress.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/layout/dialog_standard.xml b/popupDialog/src/main/res/layout/dialog_standard.xml
deleted file mode 100644
index c79a7b6..0000000
--- a/popupDialog/src/main/res/layout/dialog_standard.xml
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/layout/dialog_success_failed_alert.xml b/popupDialog/src/main/res/layout/dialog_success_failed_alert.xml
deleted file mode 100644
index f6025af..0000000
--- a/popupDialog/src/main/res/layout/dialog_success_failed_alert.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/raw/failed.json b/popupDialog/src/main/res/raw/failed.json
deleted file mode 100644
index 48ca35f..0000000
--- a/popupDialog/src/main/res/raw/failed.json
+++ /dev/null
@@ -1 +0,0 @@
-{"v":"5.5.7","meta":{"g":"LottieFiles AE 0.1.21","a":"Keikhosrow HN","k":"","d":"Vatandar","tc":""},"fr":60,"ip":0,"op":81,"w":128,"h":128,"nm":"Error","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Error Icon","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[63,64,0],"ix":2},"a":{"a":0,"k":[48,48,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[13,13],[-33.141,-33.313]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.11],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":-1.953,"s":[100]},{"t":32.080078125,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.11],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6.055,"s":[100]},{"t":40.087890625,"s":[56]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.16862745098,0.16862745098,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[48.5,48.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Line 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13,13],[13,-13]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.11],"y":[1]},"o":{"x":[0.13],"y":[0]},"t":32.08,"s":[100]},{"t":76.125,"s":[0]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.16862745098,0.16862745098,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[48.5,48.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Line 2","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[25.571,0],[0,-25.572],[-25.572,0],[0,25.571]],"o":[[-25.572,0],[0,25.571],[25.571,0],[0,-25.572]],"v":[[0,-46.5],[-46.5,0],[0,46.5],[46.5,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.16862745098,0.16862745098,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[48,48],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Circle","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":-48,"op":84,"st":-48,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/popupDialog/src/main/res/raw/success.json b/popupDialog/src/main/res/raw/success.json
deleted file mode 100644
index dfe9a1a..0000000
--- a/popupDialog/src/main/res/raw/success.json
+++ /dev/null
@@ -1 +0,0 @@
-{"v":"5.7.5","fr":60,"ip":0,"op":90,"w":64,"h":64,"nm":"check","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"check","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[32,32,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[33.333,33.333,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[9.25,-6],[-2.75,6],[-9.25,-0.5]],"c":false}},"nm":"Path 1","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.461],"y":[1]},"o":{"x":[0.466],"y":[0]},"t":44,"s":[100]},{"t":90,"s":[0]}]},"e":{"a":0,"k":100},"o":{"a":0,"k":0},"m":1,"nm":"Trim Paths 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.119997918606,0.750781238079,0.458097785711,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":3},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[350,350]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"check","bm":0,"hd":false}],"ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"circle","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[32,32,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[33.333,33.333,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[53,53]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","hd":false},{"ty":"tm","s":{"a":0,"k":0},"e":{"a":1,"k":[{"i":{"x":[0.34],"y":[1]},"o":{"x":[0.66],"y":[0]},"t":0,"s":[0]},{"t":77,"s":[100]}]},"o":{"a":1,"k":[{"i":{"x":[0.34],"y":[1]},"o":{"x":[0.66],"y":[0]},"t":0,"s":[-360]},{"t":77,"s":[0]}]},"m":1,"nm":"Trim Paths 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.119997918606,0.750781238079,0.458097785711,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":3},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[300,300]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"circle","bm":0,"hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/popupDialog/src/main/res/raw/warning.json b/popupDialog/src/main/res/raw/warning.json
deleted file mode 100644
index a75246e..0000000
--- a/popupDialog/src/main/res/raw/warning.json
+++ /dev/null
@@ -1 +0,0 @@
-{"v":"4.8.0","meta":{"g":"LottieFiles AE ","a":"","k":"","d":"","tc":""},"fr":30,"ip":0,"op":150,"w":512,"h":512,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,362,0],"ix":2},"a":{"a":0,"k":[-0.5,-34,0],"ix":1},"s":{"a":0,"k":[100,18.269,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-0.5,-125],[-0.5,57]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.717647075653,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":34,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.049412001815,0.35867100136,0.741175991881,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[0]},{"t":16,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":150,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256.5,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-0.5,-125],[-0.5,57]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.717647075653,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":34,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.049412001815,0.35867100136,0.741175991881,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.7],"y":[0.445]},"o":{"x":[0.523],"y":[0.081]},"t":3,"s":[0]},{"t":12,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":150,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.651],"y":[-0.002]},"t":0,"s":[360]},{"t":29,"s":[0]}],"ix":10},"p":{"a":0,"k":[256,255.999,0],"ix":2},"a":{"a":0,"k":[9.5,8.499,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[447,447],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"t":29,"s":[0]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":146,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.717647075653,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":34,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.5,8.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":150,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/popupDialog/src/main/res/values/colors.xml b/popupDialog/src/main/res/values/colors.xml
deleted file mode 100644
index 2da1e6f..0000000
--- a/popupDialog/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- #FFFFFF
- #000000
- #777777
- #E6E6E6
- #202020
-
- #215C5C
- #FFFFFF
- #5E5E5E
- #000000
- #00000000
-
- #226DFF
- #00FF7F
- #7500FF7F
- #FF9246
- #FFEE4D
- #FF1616
-
\ No newline at end of file
diff --git a/popupDialog/src/main/res/values/strings.xml b/popupDialog/src/main/res/values/strings.xml
deleted file mode 100644
index e27b467..0000000
--- a/popupDialog/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- Submit
- Cancel
- Dismiss
-
\ No newline at end of file
diff --git a/settings.gradle b/settings.gradle
index d517b63..fd51f10 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -16,6 +16,3 @@ dependencyResolutionManagement {
}
rootProject.name = "Foodify"
include ':app'
-include ':aestheticdialogs'
-include ':SJDialog'
-include ':popupDialog'