FlycoDialog-Matser


Source link: https://github.com/H07000223/FlycoDialog_Master

FlycoDialog-Master

???

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

Resources

A sample project to demonstrate how one can catch an unhandled exception in Android and display a custom error dialog.

This compiler will generate you db class, content provider and several helper class for you from a describing file. You can set several options like package name, database name, database version, content authority and others.

An extension to Moshi that provides general purpose, simple and yet useful JsonAdapters that are not present in the main library.

A pure MVC base library on android. Using it, your code can be very clean in MVC pattern: light Activity, light View, light Model.

A download progressbar with cool animation.

A fluent API to integrate with Strava on Android apps.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes