PayUI

by a5533348

a5533348 / PayUI

仿微信支付输入界面

128 Stars 54 Forks Last release: Not found 4 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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.