Giter Club home page Giter Club logo

blurpopupwindows's Introduction

BlurPopupWindow/高级模糊Pop弹窗

###作者:王亟亟

###blog:http://blog.csdn.net/ddwhan0123


#### 效果图 ![](http://img.blog.csdn.net/20160730214925858)
![](http://img.blog.csdn.net/20160730214936983)
公共Maven会在完成下次更新后补上

如何使用?

new BlurPopWin.Builder(MainActivity.this).setContent("该配合你演出的我,眼视而不见,在比一个最爱你的人即兴表演")
                    //Radius越大耗时越长,被图片处理图像越模糊
                    .setRadius(3).setTitle("我是标题")
                    //设置居中还是底部显示
                    .setshowAtLocationType(0)
                    .onClick(new BlurPopWin.PopupCallback() {
                        @Override
                        public void onClick(@NonNull BlurPopWin blurPopWin) {
                            Toast.makeText(MainActivity.this, "中间被点了", Toast.LENGTH_SHORT).show();
                            blurPopWin.dismiss();
                        }
                    }).show(btn);

在需要显示pop的地方直接new 一个实例出来然后简单的走一下各类set最后.show就行,灰常的简单

v1.0 可配置的方法

设置标题 setTitle(@StringRes int titleRes);

设置图片处理锐化程度 setRadius(int radius);

设置标题字体大小 setTitleTextSize(int size);

设置内容文字 setContent(@StringRes int contentRes;

设置内容字体大小 setContentTextSize(int size);

设置pop位置 setshowAtLocationType(int type);
//0为居中,1为底部

设置是否显示关闭按钮 setShowCloseButton(@NonNull boolean flag)

设置外部是否可点击 setOutSideClickable(@NonNull boolean flag)


我周中应该还会很忙,找时间继续深化功能吧。谢谢各位观众老爷

blurpopupwindows's People

Contributors

ddwhan0123 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.