Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/H07000223/FlycoDialog_Master
An Android Dialog Lib simplify customization.
https://github.com/H07000223/FlycoDialog_Master
Last synced: 2 months ago
JSON representation
An Android Dialog Lib simplify customization.
- Host: GitHub
- URL: https://github.com/H07000223/FlycoDialog_Master
- Owner: H07000223
- License: mit
- Created: 2015-08-30T11:10:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-05T22:04:20.000Z (over 6 years ago)
- Last Synced: 2024-10-10T13:23:52.125Z (3 months ago)
- Language: Java
- Homepage:
- Size: 10.6 MB
- Stars: 2,274
- Watchers: 78
- Forks: 528
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- -awesome-android-ui - FlycoDialog-Matser - Matser.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FlycoDialog-Matser - Matser.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - FlycoDialog-Matser - Matser.gif" width="49%"> (Index)
README
# FlycoDialog-Master
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FlycoDialog--Matser-green.svg?style=flat)](https://android-arsenal.com/details/1/2430)
#### [中文版](https://github.com/H07000223/FlycoDialog_Master/blob/master/README_CN.md)
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](http://fir.im/mj9p)
## Built-in Dialog
|Dialog|Description|ScreenShot|gif
|:---:|:---:|:---:|:---:|
| NormalDialog | Default(Two Btns) | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_1.gif)
| NormalDialog | Style Two | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_2.gif)
| NormalDialog | Custom Attr | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_3.gif)
| NormalDialog | One Btn | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_4.gif)
| NormalDialog | Three Btns | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_5.gif)
| MaterialDialog | Default(Two Btns) | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_6.gif)
| MaterialDialog | One Btn | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_7.gif)
| MaterialDialog | Three Btns | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_8.gif)
| NormalListDialog | Default | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_9.gif)
| NormalListDialog | Custom Attr | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_10.gif)
| NormalListDialog | No Title| |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_11.gif)
| ActionSheetDialog | Default | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_12.gif)
| ActionSheetDialog | No Title | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_13.gif)## Built-in Popup
|Popup|Description|ScreenShot|gif
|:---:|:---:|:---:|:---:|
| BubblePopup | BubblePopup | |[gif](https://github.com/H07000223/FlycoDialog_Master/blob/master/gif/preview_popup_1.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
```Java
public class CustomBaseDialog extends BaseDialog {
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
```java
public class SimpleCustomPop extends BasePopup {
public SimpleCustomPop(Context context) {
super(context);
}
@Override
public View onCreatePopupView() {
return View.inflate(mContext, R.layout.popup_custom, null);
}
@Override
public void setUiBeforShow() {
}
}
```
## Gradle```groovy
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.
* [FlycoAnimation_Lib-v1.0.0.jar](https://github.com/H07000223/FlycoDialog_Master/blob/master/Jar/v1.0.0/FlycoAnimation_Lib-v1.0.0.jar)
* [FlycoDialog_Lib-v1.0.0.jar](https://github.com/H07000223/FlycoDialog_Master/blob/master/Jar/v1.0.0/FlycoDialog_Lib-v1.0.0.jar)
* [nineoldandroids-2.4.0.jar](https://github.com/H07000223/FlycoDialog_Master/blob/master/Jar/nineoldandroids-2.4.0.jar)## Thanks
* [NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids)
* [NiftyDialogEffects](https://github.com/sd6352051/NiftyDialogEffects)
* [AndroidViewAnimations](https://github.com/daimajia/AndroidViewAnimations)