diff --git a/README.md b/README.md index 8f9fcf8..498fc1b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,130 @@ # MNPasswordEditText 类似微信支付宝的密码输入框 + +## 截图: +![](https://github.com/maning0303/MNPasswordEditText/raw/master/screenshots/mn_pswedittext_001.png) + + +## 如何添加 +### 1:Gradle添加: +#### 1.在Project的build.gradle中添加仓库地址 + +``` gradle + allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } + } +``` + +#### 2.在app目录下的build.gradle中添加依赖 +``` gradle + dependencies { + compile 'com.github.maning0303:MNPasswordEditText:V1.0.0' + } +``` + +### 2:源码Module添加: +#### 直接关联pswedittextlibrary + +``` gradle + + compile project(':pswedittextlibrary') + +``` + +## 使用方法(查看Demo详情): + +### 1:自定义参数介绍: +``` java + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +### 2:布局文件使用: +``` java + + + +``` + +### 2:代码相关: +``` java + + mPswEditText = (MNPasswordEditText) findViewById(R.id.mPswEditText); + //监听密码输入 + mPswEditText.setOnPasswordChangeListener(new MNPasswordEditText.OnPasswordChangeListener() { + @Override + public void onPasswordChange(String password) { + tvShow.setText(password); + } + }); + +``` + +## 其他详情请查看Demo: +