├── app ├── .gitignore ├── app-release.apk ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ico_wechat.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ ├── img_custom_dialog_bkg.png │ │ │ │ └── img_custom_dialog_button.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── layout │ │ │ │ ├── layout_custom_dialog.xml │ │ │ │ ├── layout_custom.xml │ │ │ │ ├── activity_jump_test.xml │ │ │ │ └── activity_dismiss_test.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── kongzue │ │ │ └── dialogdemo │ │ │ └── DismissTestActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── kongzue │ │ │ └── dialogdemo │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── kongzue │ │ └── dialogdemo │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── dialog ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── attrs.xml │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ ├── mipmap-xxhdpi │ │ │ ├── ico_wechat.png │ │ │ ├── img_error.png │ │ │ ├── img_finish.png │ │ │ ├── img_shadow.png │ │ │ ├── img_warning.png │ │ │ ├── img_error_dark.png │ │ │ ├── img_finish_dark.png │ │ │ ├── img_warning_dark.png │ │ │ └── img_notification_shadow.png │ │ ├── drawable-xxhdpi │ │ │ ├── img_ios_notification.9.png │ │ │ ├── button_dialog_left_normal.xml │ │ │ ├── button_dialog_left_down.xml │ │ │ ├── editbox_bkg.xml │ │ │ ├── button_dialog_left.xml │ │ │ ├── button_selectordialog_blue.xml │ │ │ ├── button_selectordialog_gray.xml │ │ │ ├── button_selectordialog_green.xml │ │ │ └── button_selectordialog_orange.xml │ │ ├── drawable │ │ │ ├── button_dialog_right_normal.xml │ │ │ ├── rect_button_bottom_menu_ios_down_middle.xml │ │ │ ├── button_dialog_right_down.xml │ │ │ ├── button_dialog_left_dark_down.xml │ │ │ ├── button_dialog_one_normal.xml │ │ │ ├── button_dialog_right_dark_down.xml │ │ │ ├── editbox_bkg_dark.xml │ │ │ ├── button_dialog_one_down.xml │ │ │ ├── editbox_bkg_ios.xml │ │ │ ├── rect_light.xml │ │ │ ├── button_dialog_one_dark_down.xml │ │ │ ├── rect_dark.xml │ │ │ ├── rect_dlg_dark.xml │ │ │ ├── rect_pop_bkg_dark.xml │ │ │ ├── rect_pop_bkg_light.xml │ │ │ ├── rect_pop_bkg_green.xml │ │ │ ├── rect_pop_bkg_red.xml │ │ │ ├── button_menu.xml │ │ │ ├── rect_button_bottom_menu_ios.xml │ │ │ ├── rect_pop_bkg_orange.xml │ │ │ ├── editbox_bkg_ios_dark.xml │ │ │ ├── rect_button_bottom_menu_ios_down.xml │ │ │ ├── button_menu_ios_all.xml │ │ │ ├── button_menu_ios_top.xml │ │ │ ├── button_menu_ios_bottom.xml │ │ │ ├── button_menu_ios_middle.xml │ │ │ ├── button_dialog_one.xml │ │ │ ├── button_dialog_one_dark.xml │ │ │ ├── button_dialog_right.xml │ │ │ ├── button_dialog_left_dark.xml │ │ │ ├── button_dialog_right_dark.xml │ │ │ ├── rect_button_bottom_menu_ios_down_top.xml │ │ │ ├── rect_button_bottom_menu_ios_down_bottom.xml │ │ │ ├── button_dialog_kongzue_blue_dark.xml │ │ │ ├── button_dialog_kongzue_gray_dark.xml │ │ │ ├── tri_pop_vertical_dark.xml │ │ │ ├── tri_pop_horizontal_dark.xml │ │ │ ├── tri_pop_vertical_light.xml │ │ │ ├── tri_pop_horizontal_light.xml │ │ │ ├── tri_pop_vertical_red.xml │ │ │ ├── tri_pop_horizontal_green.xml │ │ │ ├── tri_pop_horizontal_red.xml │ │ │ ├── tri_pop_vertical_green.xml │ │ │ ├── tri_pop_vertical_orange.xml │ │ │ └── tri_pop_horizontal_orange.xml │ │ ├── layout │ │ │ ├── activity_global.xml │ │ │ ├── item_pop_list_text.xml │ │ │ ├── item_bottom_menu_material.xml │ │ │ ├── item_bottom_menu_kongzue.xml │ │ │ ├── item_bottom_menu_ios.xml │ │ │ ├── notification_kongzue.xml │ │ │ ├── dialog_tip.xml │ │ │ ├── dialog_wait.xml │ │ │ ├── notification_ios.xml │ │ │ ├── notification_material.xml │ │ │ ├── bottom_menu_material.xml │ │ │ ├── dialog_input.xml │ │ │ ├── bottom_menu_kongzue.xml │ │ │ ├── layout_normal_pop.xml │ │ │ ├── dialog_select.xml │ │ │ ├── bottom_menu_ios.xml │ │ │ └── dialog_select_ios.xml │ │ └── anim │ │ │ ├── exit_anim.xml │ │ │ ├── enter_anim.xml │ │ │ ├── enter_bottom_menu.xml │ │ │ ├── exit_bottom_menu.xml │ │ │ ├── enter_ios_anim.xml │ │ │ └── exit_ios_anim.xml │ │ ├── java │ │ └── com │ │ │ └── kongzue │ │ │ └── dialog │ │ │ ├── listener │ │ │ ├── OnMenuItemClickListener.java │ │ │ ├── InputDialogOkButtonClickListener.java │ │ │ ├── DialogLifeCycleListener.java │ │ │ ├── OnDismissListener.java │ │ │ └── OnBackPressListener.java │ │ │ ├── util │ │ │ ├── ModalBaseDialog.java │ │ │ ├── InputInfo.java │ │ │ ├── TextInfo.java │ │ │ ├── KongzueDialogHelper.java │ │ │ ├── BaseDialog.java │ │ │ └── ShadowLayout.java │ │ │ └── v2 │ │ │ ├── DialogSettings.java │ │ │ ├── CustomDialog.java │ │ │ ├── WaitDialog.java │ │ │ └── TipDialog.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── _config.yml ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── markdown-navigator │ └── profiles_settings.xml ├── codeStyles │ └── codeStyleConfig.xml ├── markdown-exported-files.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml ├── inspectionProfiles │ └── Project_Default.xml ├── misc.xml └── markdown-navigator.xml ├── .gitignore ├── .github └── ISSUE_TEMPLATE │ ├── -------.md │ └── bug---.md ├── gradle.properties ├── gradlew.bat ├── gradlew ├── LICENSE └── README-Eng.md /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /dialog/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-minimal -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':dialog' 2 | -------------------------------------------------------------------------------- /app/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/app-release.apk -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 空祖家的对话框 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /dialog/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | KongzueDialog 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ico_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xxhdpi/ico_wechat.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/ico_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/ico_wechat.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_error.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_finish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_finish.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_shadow.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_warning.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_error_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_error_dark.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_finish_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_finish_dark.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_warning_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_warning_dark.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/img_custom_dialog_bkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xxhdpi/img_custom_dialog_bkg.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/img_custom_dialog_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/app/src/main/res/mipmap-xxhdpi/img_custom_dialog_button.png -------------------------------------------------------------------------------- /dialog/src/main/res/mipmap-xxhdpi/img_notification_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/mipmap-xxhdpi/img_notification_shadow.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/img_ios_notification.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kongzue/Dialog/HEAD/dialog/src/main/res/drawable-xxhdpi/img_ios_notification.9.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/markdown-navigator/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /dialog/src/main/java/com/kongzue/dialog/listener/OnMenuItemClickListener.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialog.listener; 2 | 3 | public interface OnMenuItemClickListener { 4 | 5 | void onClick(String text,int index); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /.idea/markdown-exported-files.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #3d68b6 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jan 18 14:06:09 CST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_right_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/java/com/kongzue/dialog/listener/InputDialogOkButtonClickListener.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialog.listener; 2 | 3 | import android.app.Dialog; 4 | import android.view.View; 5 | 6 | public interface InputDialogOkButtonClickListener { 7 | void onClick(Dialog dialog, String inputText); 8 | } 9 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/button_dialog_left_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_button_bottom_menu_ios_down_middle.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_right_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/button_dialog_left_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_left_dark_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_one_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_right_dark_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/editbox_bkg_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/java/com/kongzue/dialog/listener/DialogLifeCycleListener.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialog.listener; 2 | 3 | import android.app.Dialog; 4 | 5 | public interface DialogLifeCycleListener { 6 | 7 | void onCreate(Dialog alertDialog); 8 | 9 | void onShow(Dialog alertDialog); 10 | 11 | void onDismiss(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/editbox_bkg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/layout/activity_global.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_one_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/editbox_bkg_ios.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_light.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_one_dark_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_dlg_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_pop_bkg_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_pop_bkg_light.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/-------.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 希望增加新功能 3 | about: 为这个项目提出一些想法或改进建议 4 | title: "[新功能]" 5 | labels: help wanted 6 | assignees: '' 7 | 8 | --- 9 | 10 | **您的功能请求是否与问题相关?请描述一下。** 11 | 对问题所在的简明描述。 12 | 13 | **描述您想要的解决方案** 14 | 对你想要的功能的清晰而简洁的描述。 15 | 16 | **描述你考虑过的替代方案** 17 | 对您所考虑的任何替代解决方案或功能的清晰而简洁的描述。 18 | 19 | **其他相关** 20 | 在此添加关于功能请求的任何其他上下文或截图。 21 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_pop_bkg_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_pop_bkg_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/java/com/kongzue/dialog/listener/OnDismissListener.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialog.listener; 2 | 3 | /** 4 | * Author: @Kongzue 5 | * Github: https://github.com/kongzue/ 6 | * Homepage: http://kongzue.com/ 7 | * Mail: myzcxhh@live.cn 8 | * CreateTime: 2018/12/14 14:25 9 | */ 10 | public interface OnDismissListener { 11 | void onDismiss(); 12 | } 13 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_button_bottom_menu_ios.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_pop_bkg_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/editbox_bkg_ios_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_button_bottom_menu_ios_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/anim/exit_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 11 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_menu_ios_all.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_menu_ios_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/anim/enter_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 11 | -------------------------------------------------------------------------------- /dialog/src/main/res/anim/enter_bottom_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 11 | -------------------------------------------------------------------------------- /dialog/src/main/res/anim/exit_bottom_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 11 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_menu_ios_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_menu_ios_middle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_one.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/button_dialog_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_one_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_left_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_right_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_button_bottom_menu_ios_down_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /dialog/src/main/java/com/kongzue/dialog/listener/OnBackPressListener.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialog.listener; 2 | 3 | import android.support.v7.app.AlertDialog; 4 | 5 | /** 6 | * Author: @Kongzue 7 | * Github: https://github.com/kongzue/ 8 | * Homepage: http://kongzue.com/ 9 | * Mail: myzcxhh@live.cn 10 | * CreateTime: 2018/9/21 10:20 11 | */ 12 | public interface OnBackPressListener { 13 | void OnBackPress(AlertDialog alertDialog); 14 | } 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/rect_button_bottom_menu_ios_down_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dialog/src/main/res/layout/item_pop_list_text.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/src/test/java/com/kongzue/dialogdemo/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialogdemo; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug---.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug 报告 3 | about: 创建一份反馈报告来帮助我们改进 4 | title: "[BUG]" 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **描述错误** 11 | 对bug是什么的清晰简洁的描述。 12 | 13 | **复现方法** 14 | 重现行为的步骤: 15 | 1. 去“……” 16 | 2. 点击“……” 17 | 3. 向下滚动到“……” 18 | 4. 见错误 19 | 20 | **预期行为** 21 | 对你期望发生的事情的清晰而简洁的描述。 22 | 23 | **截图** 24 | 如果适用,添加截图来帮助解释你的问题。 25 | 26 | **系统信息(请填写以下信息) : ** 27 | - 版本[例如Android P] 28 | 29 | **设备(请填写以下信息) : ** 30 | - 设备: [例如Pixel XL] 31 | - 组件版本[例如1.0.0] 32 | 33 | **其他** 34 | 在此添加有关此问题的任何其他信息。 35 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/button_selectordialog_blue.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/button_selectordialog_gray.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/button_selectordialog_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable-xxhdpi/button_selectordialog_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/anim/enter_ios_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 17 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_kongzue_blue_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/button_dialog_kongzue_gray_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dialog/src/main/res/layout/item_bottom_menu_material.xml: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_vertical_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_horizontal_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_vertical_light.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/layout/item_bottom_menu_kongzue.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_horizontal_light.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_vertical_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_horizontal_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_horizontal_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_vertical_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_vertical_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /dialog/src/main/res/anim/exit_ios_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 17 | 18 | -------------------------------------------------------------------------------- /dialog/src/main/res/drawable/tri_pop_horizontal_orange.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /dialog/src/main/res/layout/item_bottom_menu_ios.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 17 | 18 | -------------------------------------------------------------------------------- /dialog/src/main/java/com/kongzue/dialog/util/ModalBaseDialog.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialog.util; 2 | 3 | import android.util.Log; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * Author: @Kongzue 10 | * Github: https://github.com/kongzue/ 11 | * Homepage: http://kongzue.com/ 12 | * Mail: myzcxhh@live.cn 13 | * CreateTime: 2018/9/3 19:07 14 | */ 15 | public abstract class ModalBaseDialog extends BaseDialog { 16 | 17 | protected static List modalDialogList = new ArrayList<>(); //对话框模态化队列 18 | 19 | protected static void showNextModalDialog(){ 20 | Log.i("###", "showNextModalDialog: "+modalDialogList.size()); 21 | modalDialogList.get(0).showDialog(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/kongzue/dialogdemo/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialogdemo; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.kongzue.dialogdemo", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_custom_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | 14 | 15 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /dialog/src/main/java/com/kongzue/dialog/util/InputInfo.java: -------------------------------------------------------------------------------- 1 | package com.kongzue.dialog.util; 2 | 3 | import android.text.InputType; 4 | 5 | /** 6 | * Author: @Kongzue 7 | * Github: https://github.com/kongzue/ 8 | * Homepage: http://kongzue.com/ 9 | * Mail: myzcxhh@live.cn 10 | * CreateTime: 2018/11/8 21:41 11 | */ 12 | public class InputInfo { 13 | 14 | private int MAX_LENGTH; 15 | private int inputType; //类型详见 android.text.InputType 16 | 17 | public int getMAX_LENGTH() { 18 | return MAX_LENGTH; 19 | } 20 | 21 | public InputInfo setMAX_LENGTH(int MAX_LENGTH) { 22 | this.MAX_LENGTH = MAX_LENGTH; 23 | return this; 24 | } 25 | 26 | public int getInputType() { 27 | return inputType; 28 | } 29 | 30 | /** 31 | * 文本输入类型 32 | * {@link InputType}. 33 | * @see InputType 34 | */ 35 | public InputInfo setInputType(int inputType) { 36 | this.inputType = inputType; 37 | return this; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\sdk\Android/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /dialog/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\sdk\Android/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /dialog/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_custom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 14 | 19 | 20 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | buildToolsVersion '28.0.3' 6 | defaultConfig { 7 | applicationId "com.kongzue.dialogv2" 8 | minSdkVersion 14 9 | targetSdkVersion 28 10 | versionCode 5 11 | versionName "2.4.2" 12 | 13 | renderscriptTargetApi 19 14 | renderscriptSupportModeEnabled true 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 20 | } 21 | } 22 | } 23 | 24 | repositories { 25 | maven { 26 | url "http://dl.bintray.com/myzchh/maven" 27 | } 28 | } 29 | 30 | dependencies { 31 | implementation fileTree(include: ['*.jar'], dir: 'libs') 32 | implementation 'com.android.support:appcompat-v7:28.0.0' 33 | 34 | //implementation 'com.kongzue.dialog:dialog:2.4.8' 35 | implementation project(':dialog') 36 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_jump_test.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 22 | 23 |