帮酷LOGO
0 0 评论
文章标签:DIA  Simplify  定制化  Android 对话框  对话框  
This is an Android Dialog Library that you can directly use default inner dialog and default animation. It has 6 kinds of diaog and many kings of show and dimiss animations inside Library. It has good expansibility.If you don not like inner dialog and ani

  • 源代码名称:FlycoDialog_Master
  • 源代码网址:http://www.github.com/H07000223/FlycoDialog_Master
  • FlycoDialog_Master源代码文档
  • FlycoDialog_Master源代码下载
  • Git URL:
    git://www.github.com/H07000223/FlycoDialog_Master.git
  • Git Clone代码到本地:
    git clone http://www.github.com/H07000223/FlycoDialog_Master
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/H07000223/FlycoDialog_Master
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
  • flycodialog主机

    Android Arsenal

    中文版

    Android对话框Lib简化定制。 Supprot 2.2 +。

    特性

    • [Built-in Dialog, convenient to use] ( #Built-in对话框)
    • [Abundant Built-in Animations, convenient to use] ( 内置动画的#Abundant )
    • [Qucik Customize Dialog] ( #Qucik自定义对话框)
    • [Qucik Customize Popup] ( #Qucik自定义弹出菜单)
    • [Support Customize Dialog Animation] ( #Customize对话框动画)
    DemoApk下载

    内置的

    对话框描述屏幕截图 gif
    NormalDialog默认值( 两个 Btns )gif
    NormalDialog样式二gif
    NormalDialog自定义 Attrgif
    NormalDialog一个 Btngif
    NormalDialog三个 Btnsgif
    MaterialDialog默认值( 两个 Btns )gif
    MaterialDialog一个 Btngif
    MaterialDialog三个 Btnsgif
    NormalListDialog默认值gif
    NormalListDialog自定义 Attrgif
    NormalListDialog无标题gif
    ActionSheetDialog默认值gif
    ActionSheetDialog无标题gif

    内置的Popup

    弹出式描述屏幕截图 gif
    BubblePopupBubblePopupgif

    更改日志

    v1.3.0 ( 2015-05-21 )

    • 删除NineOldAnimation的依赖关系( 仅支持 3.0 + )

    v1.2.6 ( 2015-01-07 )

    • 将FlycoAnimation_Lib合并到FlycoDialog_Lib中
    • 在弹出窗口中修复 Bug 单击无响应
    • 改进BaseBubblePopup的功能

    v1.2.2 ( 2015-12-20 )

    • BasePopup小 Bug 修复

    v1.2.0 ( 2015-12-19 )

    • 新添加的基本部件- BasePopup
    • 新添加的小部件- BubblePopup
    • BaseDialog支持给定延迟的自动 dimiss

    Customize Customize

    • step1:extends BaseDialog ( 或者BottomBaseDialog或者 TopBaseDialog )
    • step2:inflate 布局和在onCreateView方法中查找视图
    • setUiBeforShow方法中的step3:do 逻辑运算
    
    
    
    
    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;
    
    
     }
    
    
    }
    
    
    
    

    Customize Customize Customize

    • step1:extends BasePopup
    • step2:inflate 布局和在onCreatePopupView方法中查找视图
    • setUiBeforShow方法中的step3:do 逻辑运算
    
    
    
    
    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 ( 无更新)

    Eclipse 开发人员应该在你的项目中包含 jars。

    谢谢



    文章标签:DIA  对话框  Simplify  定制化  Android 对话框  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语