Need help with PayUI?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

a5533348
129 Stars 54 Forks 4 Commits 0 Opened issues

Description

仿微信支付输入界面

Services available

!
?

Need anything else?

Contributors list

# 339,683
Java
4 commits

PayUI

预览

使用

这个弹出层是一个DialogFragment,逻辑都封装在其内部,使用起来很简单:

Bundle bundle = new Bundle();
bundle.putString(PayFragment.EXTRA_CONTENT, "提现:¥ " + 100.00);

PayFragment fragment = new PayFragment(); fragment.setArguments(bundle); fragment.setPaySuccessCallBack(MainActivity.this); fragment.show(getSupportFragmentManager(), "Pay");

通过InputCallBack接口回调输入的支付密码,可以在回调方法中请求判断支付密码是不是正确的,也可以在PayFragment内部自己修改判断,没有用到什么高深的技术,大家看代码自然就明白了。

博客地址: Blog

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.