All Projects → lvTravler → Android-Dialog

lvTravler / Android-Dialog

Licence: Apache-2.0 license
Android Dialog(BaseDialog、AlertDialog、ProgressDialog、SuccessDdialog、ErrorDialog、BottomDialog)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android-Dialog

Wc Messagebox
基于 Vue 2.0 开发的 Alert, Toast, Confirm 插件, UI仿照 iOS 原生
Stars: ✭ 203 (+463.89%)
Mutual labels:  alert, dialog
KotlinDialogs
对话框工具,Dialog集合工具,引用了V7包的AlertDialog 使用的 kotlin_version = '1.3.11'写的
Stars: ✭ 16 (-55.56%)
Mutual labels:  dialog, alertdialog
Alertview
A library to create simple alerts easily with some customization.
Stars: ✭ 222 (+516.67%)
Mutual labels:  alert, dialog
Bdialog
Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
Stars: ✭ 174 (+383.33%)
Mutual labels:  alert, dialog
eins-modal
Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
Stars: ✭ 30 (-16.67%)
Mutual labels:  alert, dialog
Sweetalert2
A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
Stars: ✭ 13,929 (+38591.67%)
Mutual labels:  alert, dialog
Nativepopup
Clone of Apple iOS App's feedback popup, and easily customizable.
Stars: ✭ 247 (+586.11%)
Mutual labels:  alert, dialog
V Dialogs
A simple and clean instructional dialog plugin for Vue2, dialog type including Modal, Alert, Mask and Toast
Stars: ✭ 121 (+236.11%)
Mutual labels:  alert, dialog
CompatAlertDialog
No description or website provided.
Stars: ✭ 27 (-25%)
Mutual labels:  dialog, alertdialog
alert
Cross-platform, isomorphic alert, for Node and browser (previously alert-node)
Stars: ✭ 27 (-25%)
Mutual labels:  alert, dialog
Alerttoast
Create Apple-like alerts & toasts using SwiftUI
Stars: ✭ 151 (+319.44%)
Mutual labels:  alert, dialog
android-suspend-dialogs
A helper library for Android to display Dialogs by suspending the coroutine till finish of the dialog.
Stars: ✭ 32 (-11.11%)
Mutual labels:  alert, dialog
Alertifyjs
A javascript framework for developing pretty browser dialogs and notifications.
Stars: ✭ 1,922 (+5238.89%)
Mutual labels:  alert, dialog
Pmalertcontroller
PMAlertController is a great and customizable alert that can substitute UIAlertController
Stars: ✭ 2,397 (+6558.33%)
Mutual labels:  alert, dialog
Jquery Confirm
A multipurpose plugin for alert, confirm & dialog, with extended features.
Stars: ✭ 1,776 (+4833.33%)
Mutual labels:  alert, dialog
Jh flutter demo
a flutter demo
Stars: ✭ 229 (+536.11%)
Mutual labels:  alert, dialog
Angular Confirm
A multipurpose plugin for alert, confirm & dialog for angular1
Stars: ✭ 114 (+216.67%)
Mutual labels:  alert, dialog
Jxpopupview
一个轻量级的自定义视图弹出框架
Stars: ✭ 117 (+225%)
Mutual labels:  alert, dialog
react-st-modal
Simple and flexible modal dialog component for React JS
Stars: ✭ 41 (+13.89%)
Mutual labels:  alert, dialog
vue2-dialog
A mobile Vue plugin for VueDialog
Stars: ✭ 21 (-41.67%)
Mutual labels:  alert, dialog

Android-Dialog

基于DialogFragment实现的Dialog,有以下几点优势:

  1. 异常情况状态自动保存
  2. show、dismiss等严格被Fragment生命周期托管,不会出现内存泄露
  3. 支持自定义,扩展性高

Show

AlertDialog:

AlertDialog

ProgressDialog:

ProgressDialog

SuccessDialog:

SuccessDialog

ErrorDialog:

ErrorDialog

BottomDialog:

BottomDialog Usage

   public void showAlertDialog() {
        AlertDialog.with(MainActivity.this)
                .setCancelable(true)
                .setContent("Android Alert DialogFragment Content")
                .setTitle("AlertDialog Title")
                .setPositiveButton("success", new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        showSuccessDialog();
                    }
                }).setNegativeButton("error", new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                showErrorDialog();
            }
        }).show();
    }

    public void showErrorDialog() {
        StatusDialog.with(MainActivity.this)
                .setCancelable(false)
                .setPrompt("load error")
                .setType(StatusDialog.Type.ERROR)
                .show();
    }

    public void showSuccessDialog() {
        StatusDialog.with(MainActivity.this)
                .setCancelable(false)
                .setPrompt("load success")
                .setType(StatusDialog.Type.SUCCESS)
                .show();
    }

    public void showProgressDialog() {
        StatusDialog.with(MainActivity.this)
                .setCancelable(false)
                .setPrompt("loading…")
                .setType(StatusDialog.Type.PROGRESS)
                .show();
    }
    
   public void showItemDialog() {
        List<ItemBean> itemBeanList = Utils.getItemBeanList();
        ItemDialog.with(MainActivity.this)
                .setCancelable(true)
                .setData(itemBeanList)
                .setOnItemClickListener(new ItemDialog.OnItemClickListener() {
                    @Override
                    public void onItemClick(int position, ItemBean itemData) {
                        showSuccessDialog();
                    }
                })
                .setSpanCount(itemBeanList.size())
                .setAnimations(R.style.Dialog_Anim_Bottom_In_Bottom_Out)
                .setGravity(Gravity.BOTTOM)
                .setShowType(ItemDialog.ShowType.GRID)
                .show();
    }

It feels good,Please Star,Thank you!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].