An Android Dialog Lib simplify customization.

Overview

FlycoDialog-Master

Android Arsenal

中文版

An Android Dialog Lib simplify customization. Supprot 2.2+.

Features

  • [Built-in Dialog, convenient to use](#Built-in Dialog)
  • [Abundant Built-in Animations, convenient to use](#Abundant Built-in Animations)
  • [Qucik Customize Dialog](#Qucik Customize Dialog)
  • [Qucik Customize Popup](#Qucik Customize Popup)
  • [Support Customize Dialog Animation](#Customize Dialog Animation)

DemoApk Download

Built-in Dialog

Dialog Description ScreenShot gif
NormalDialog Default(Two Btns) gif
NormalDialog Style Two gif
NormalDialog Custom Attr gif
NormalDialog One Btn gif
NormalDialog Three Btns gif
MaterialDialog Default(Two Btns) gif
MaterialDialog One Btn gif
MaterialDialog Three Btns gif
NormalListDialog Default gif
NormalListDialog Custom Attr gif
NormalListDialog No Title gif
ActionSheetDialog Default gif
ActionSheetDialog No Title gif

Built-in Popup

Popup Description ScreenShot gif
BubblePopup BubblePopup gif

Change Log

v1.3.0(2015-05-21)

  • remove the dependence of NineOldAnimation(only support 3.0+)

v1.2.6(2015-01-07)

  • Combine FlycoAnimation_Lib into FlycoDialog_Lib
  • Fix bug for View in Popup click no response
  • Improve the function of BaseBubblePopup

v1.2.2(2015-12-20)

  • BasePopup small bug fix

v1.2.0(2015-12-19)

  • new added base widget - BasePopup
  • new added built-in widget - BubblePopup
  • BaseDialog support auto dimiss in given delay

Qucik Customize Dialog

  • step1:extends BaseDialog(or BottomBaseDialog or TopBaseDialog)
  • step2:inflate layout and find views in onCreateView method
  • step3:do logic operation in setUiBeforShow method
public class CustomBaseDialog extends BaseDialog<CustomBaseDialog> {
    private TextView tv_cancel;
    private TextView tv_exit;

    public CustomBaseDialog(Context context) {
        super(context);
    }

    @Override
    public View onCreateView() {
        widthScale(0.85f);
        showAnim(new Swing());

        // dismissAnim(this, new ZoomOutExit());
        View inflate = View.inflate(context, R.layout.dialog_custom_base, null);
        tv_cancel = ViewFindUtils.find(inflate, R.id.tv_cancel);
        tv_exit = ViewFindUtils.find(inflate, R.id.tv_exit);
        inflate.setBackgroundDrawable(
                CornerUtils.cornerDrawable(Color.parseColor("#ffffff"), dp2px(5)));

        return inflate;
    }

    @Override
    public boolean setUiBeforShow() {
        tv_cancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

        tv_exit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

        return false;
    }
}

Qucik Customize Popup

  • step1:extends BasePopup
  • step2:inflate layout and find views in onCreatePopupView method
  • step3:do logic operation in setUiBeforShow method
public class SimpleCustomPop extends BasePopup<SimpleCustomPop> {
        public SimpleCustomPop(Context context) {
            super(context);
        }

        @Override
        public View onCreatePopupView() {
            return View.inflate(mContext, R.layout.popup_custom, null);
        }

        @Override
        public void setUiBeforShow() {

        }
    }

Gradle

dependencies{
     compile 'com.flyco.dialog:FlycoDialog_Lib:1.2.2@aar'
     compile 'com.flyco.animation:FlycoAnimation_Lib:1.0.0@aar'
     compile 'com.nineoldandroids:library:2.4.0'
}

After v1.2.6
dependencies{
     compile 'com.flyco.dialog:FlycoDialog_Lib:1.2.8@aar'
     compile 'com.nineoldandroids:library:2.4.0'
}

After v1.3.0
dependencies{
     compile 'com.flyco.dialog:FlycoDialog_Lib:1.3.2@aar'
}

Eclispe(no update)

Eclipse Developers should include jars below into your project.

Thanks

Comments
  • BubblePopup为什么只响应一个TextView的点击事件

    BubblePopup为什么只响应一个TextView的点击事件

    我的代码如下:

    View inflate = View.inflate(getContext(), R.layout.widget_main_subject, null); inflate.findViewById(R.id.main_one).setOnClickListener(this); inflate.findViewById(R.id.main_two).setOnClickListener(this); BubblePopup bubblePopup = new BubblePopup(getContext(), inflate); bubblePopup.anchorView(mTitle) .show();

    为什么只有第一个textview的事件被响应了?

    opened by xiaojidonggong 3
  • Unable to set cancel text in ActionSheetDialog

    Unable to set cancel text in ActionSheetDialog

    while using ActionSheetDialog you can set content menu items and can't able to set text for cancel ,its shows me in native language of the repo's developer.please suggest me the workable solution.

    opened by Awais-Ali 3
  • 建议升级使用DialogFragment

    建议升级使用DialogFragment

    DialogFragment是Android主推荐使用方式,可以有效管理生命周期,也解决了旋转Dialog没有创建等,对话框输入键盘弹出Dialog上移等处理。一般MD风格用AlertDialog就行,但国内很大Android还是仿IOS 对话框,使用上希望FlycoDialog能够以DialogFragment来实现,对于自定义view可以如AlertDialog那样方便使用addView()来添加内容区域。

    CodePath 中有

    DialogFragment is now the canonical way to display overlays; using Dialog directly is considered bad practice.

    opened by ysmintor 2
  • popup点击以外区域无法dismiss求解!

    popup点击以外区域无法dismiss求解!

    Dear H07000223, 库很好用,在使用dialog过程中简化操作,也非常易用、漂亮。 现在有个需要用popup的需求,于是就使用了你的这个BasePopup, 试了很多遍却发现不能像dialog一样,在点击内容区域外部取消操作, 设置了setCanceledOnTouchOutside(true)之后也不起作用, 目前已在项目中...急求解....非常感谢您的开源.

    opened by ynheng 2
  • Dialog not resize when keyboard popup

    Dialog not resize when keyboard popup

    hy, i have problem when i create custom dialog with extends BaseDialog, i put edittext and when keyboard open dialog not move or resize, i try to getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); in onCreateView() and edit manifest but still working

    opened by andriiaveiro 1
  • Qucik Customize Dialog doesn't work

    Qucik Customize Dialog doesn't work

    Hi I'm trying to make a custom dialog like in the example "Qucik Customize Dialog" but i give me some errors here

    tv_cancel = ViewFindUtils.find(inflate, R.id.tv_cancel);
    tv_exit = ViewFindUtils.find(inflate, R.id.tv_exit);
    

    it seems that ViewFindUtils doesn't exist. I tried to use LayoutInflate with no success

    opened by aresares 1
  • titleGravity

    titleGravity

    Hi, thanks for this great library. Is there a way to get the gravity for the title just like the content. I am using NormalDialog with btnNum(1) and want the title centered.

    opened by saintjab 1
  • 新手问题,kotlin如何拿到回调?

    新手问题,kotlin如何拿到回调?

    不想自定义样式,直接使用内置样式NormalDialog。 只有onDismiss能拿到数据

     dialog.setOnDismissListener {
                    Log.d("dialog", "dismiss dialog")
                }
    

    其他的Listener都没回调数据,比如:

     dialog.setOnBtnClickL(OnBtnClickL {
                    Log.d("dialog", "button is pressed")
                })
    
    dialog.setOnCancelListener{
                    Log.d("dialog", "on cancel")
                }
     dialog.setOnShowListener {
                    Log.d("dialog", "on show")
                }    
              
    

    这三个都没有显示

    opened by carl0804 0
  • 留白问题处理

    留白问题处理

    主要是hauwei vivo oppo高版本会出这样的问题 重写dialog的show方法即可 @Override public void show() { super.show(); String brand = Build.BRAND; if (!TextUtils.isEmpty(brand) && (brand.toLowerCase().contains("huawei") || brand.toLowerCase().contains("vivo") || brand.toLowerCase().contains("oppo"))) { Window window = getWindow(); window.getDecorView().setPadding(0, 0, 0, 0); LayoutParams layoutParams = window.getAttributes(); layoutParams.width = LayoutParams.MATCH_PARENT; layoutParams.height = LayoutParams.MATCH_PARENT; window.setAttributes(layoutParams); } }

    opened by jfycd 0
Releases(v1.2.8)
Owner
Flyco
Flyco
A highlight lib and also it can be a simple popup window lib for android

HighlightPro 中文 HighlightPro is a highlight library for android and also it can be a simple popup window library for android. Features: One or more hi

heyangyang 192 Jan 2, 2023
Android has a built in microphone through which you can capture audio and store it , or play it in your phone. There are many ways to do that but with this dialog you can do all thats with only one dialog.

# Media Recorder Dialog ![](https://img.shields.io/badge/Platform-Android-brightgreen.svg) ![](https://img.shields.io/badge/Android-CustomView-blue.sv

Abdullah Alhazmy 73 Nov 29, 2022
ionalert 1.3 1.6 Java Sweetalert, Dialog, Alert Dialog

ionalert - Android Alert Dialog A beautiful design Android Alert Dialog, alternative of Sweet Alert Dialog based on KAlertDialog using MaterialCompone

Excel Dwi Oktavianto 23 Sep 17, 2022
Alert Dialog - You can use this extension instead of creating a separate Alert Dialog for each Activity or Fragment.

We show a warning message (Alert Dialog) to the user in many parts of our applications. You can use this extension instead of creating a separate Alert Dialog for each Activity or Fragment. Thanks to this extension, you can create a Dialog and call it in the Activity or Fragment you want and customize the component you want.

Gökmen Bayram 0 Jan 9, 2022
AlertDialog for Android, a beautiful and material alert dialog to use in your android app.

AlertDialog for Android, a beautiful and material alert dialog to use in your android app. Older verion of this library has been removed

Akshay Masram 124 Dec 28, 2022
Advanced dialog solution for android

DialogPlus Simple and advanced dialog solution. Uses normal view as dialog Provides expandable option Multiple positioning Built-in options for easy i

Orhan Obut 5k Dec 29, 2022
SweetAlert for Android, a beautiful and clever alert dialog

Sweet Alert Dialog SweetAlert for Android, a beautiful and clever alert dialog 中文版 Inspired by JavaScript SweetAlert Demo Download ScreenShot Setup Th

书呆子 7.3k Dec 30, 2022
[Deprecated] This project can make it easy to theme and custom Android's dialog. Also provides Holo and Material themes for old devices.

Deprecated Please use android.support.v7.app.AlertDialog of support-v7. AlertDialogPro Why AlertDialogPro? Theming Android's AlertDialog is not an eas

Feng Dai 468 Nov 10, 2022
Android library to show "Rate this app" dialog

Android-RateThisApp Android-RateThisApp is an library to show "Rate this app" dialog. The library monitors the following status How many times is the

Keisuke Kobayashi 553 Nov 23, 2022
A simple file/ directory picker dialog for android

FileListerDialog FileListerDialog helps you to list and pick file/directory. Library is built for Android Getting Started Installing To use this libra

Yogesh S 446 Jan 7, 2023
a quick custom android dialog project

QustomDialog Qustom helps you make quick custom dialogs for Android. All this is, for the time being, is a way to make it easy to achieve the Holo loo

Daniel Smith 183 Nov 20, 2022
Android library that allows applications to add dialog-based slider widgets to their settings

Android Slider Preference Library Overview Slider represents a float between 0.0 and 1.0 Access with SliderPreference.getValue() or SharedPreferences.

Jay Petacat 135 Nov 29, 2022
An Android library for displaying a dialog where it presents new features in the app.

WhatIsNewDialog What is new dialog for Android is used for presenting new features in the the app. It can be used in the activity starts, from menu or

NonZeroApps 22 Aug 23, 2022
Android library to show "Rate this app" dialog

Android-RateThisApp Android-RateThisApp is an library to show "Rate this app" dialog. The library monitors the following status How many times is the

Keisuke Kobayashi 553 Nov 23, 2022
A simple library to show custom dialog with animation in android

SmartDialog A simple library to show custom dialog in android Step 1. Add the JitPack repository to your build file allprojects { repositories {

claudysoft 9 Aug 18, 2022
AlertDialog - Explain about Alert Dialog in Android

AndroidTemplate I got a problem to create Android project with Java 11 and anoth

Monthira Chayabanjonglerd 1 Feb 13, 2022
An beautiful and easy to use dialog library for Android

An beautiful and easy to use dialog library for Android

ShouHeng 22 Nov 8, 2022
CuteDialog- Android Custom Material Dialog Library

A Custom Material Design Dialog Library for Android Purpose CuteDialog is a Highly Customizable Material Design Android Library. CuteDialog allows dev

CuteLibs - Smart & Beautiful Android Libraries 7 Dec 7, 2022
An easy to use, yet very customizable search dialog

search-dialog An awesome and customizable search dialog with built-in search options. Usage First add jitpack to your projects build.gradle file allpr

Mad Mirrajabi 518 Dec 15, 2022