1 Star 0 Fork 0

Archermind-TI / PassWordInput

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

PassWordInput

简介

为OHOS开发的一个自定义密码输入与动画效果

功能

  1. 自定义带动画效果的登录框
  2. 手势密码UI
  3. 密码输入UI
  4. 滑动线条UI

演示

为OHOS开发的一个自定义登录页面与动画效果

集成

无maven地址,下载模块包源码使用

使用说明

###PwdInputView 使用

mPwdInputView.setShadowPasswords(ture);//是否显示密码
       //mPwdInputView.setShadowPasswords(true, R.mipmap.icon_pwd);//显示图片
       //mPwdInputView.setShadowPasswords(show, "密");//显示字符
       mPwdInputView.setPwdInputViewType(PwdInputView.ViewType.DEFAULT);//默认圆环
       //mPwdInputView.setPwdInputViewType(PwdInputView.ViewType.UNDERLINE);//下划线
       //mPwdInputView.setPwdInputViewType(PwdInputView.ViewType.BIASLINE);//斜杠
       mPwdInputView.setRadiusBg(0);//圆角半径
mPwdGestureView.setIsDrawLine(true);//显示路径
       mPwdGestureView.setOldPwd("012543");//设置原始密码
         mPwdGestureView.startWork(new PwdGestureView.GetPwd() {
            @Override
            public void onGetPwd(String pwd) {
                //获得手势密码
            }
        });

###SignUpInputView 使用

mSignUpInputView.setSetpIcon(R.mipmap.user, R.mipmap.email, R.mipmap.pwd);//set icon
        mSignUpInputView.setSetpName("Name", "Email", "PassWord");//set title
        mSignUpInputView.setmButtonText("Sign up");//button text
        mSignUpInputView.setVerifyTypeStep(SignUpInputView.VerifyType.NULL,
                SignUpInputView.VerifyType.EMAIL,
                SignUpInputView.VerifyType.PASSWORD);
         mSignUpInputView.setOnGetStepInfo(new SignUpInputView.GetStepAndText() {
            @Override
            public void GetInfo(int step, String stepName, String text) {
            
            }
        });

编译说明

  1. 将项目通过git clone 至本地
  2. 使用DevEco Studio 打开该项目,然后等待Gradle 构建完成
  3. 点击Run运行即可(真机运行可能需要配置签名)

版本迭代

  • v1.0 初始版本 changelog

  • v1.1 修复一些缺陷

  • v1.2 修复输入动画等待过久问题

版权和许可信息

License

The MIT License (MIT)

Copyright (c) 2016 ldoublem

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The MIT License (MIT) Copyright (c) 2016 ldoublem Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个自定义密码输入与动画效果.项目从PassWordInput(https://github.com/ldoublem/PassWordInput)移植而来 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/archermind-ti/passwordinput.git
git@gitee.com:archermind-ti/passwordinput.git
archermind-ti
passwordinput
PassWordInput
master

搜索帮助