├── app ├── .gitignore ├── src │ ├── main │ │ ├── assets │ │ │ └── fonts │ │ │ │ └── Rubrik-Medium.otf │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_action_github.png │ │ │ │ ├── ic_custom_hide.png │ │ │ │ └── ic_custom_show.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_custom_hide.png │ │ │ │ ├── ic_custom_show.png │ │ │ │ └── ic_action_github.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── scottyab │ │ │ └── sample │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── scottyab │ │ │ └── showhidepasswordedittextlibrary │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── scottyab │ │ └── sample │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── library ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── attrs_showhide_password.xml │ │ │ │ └── library_showhidepasswordedittext_strings.xml │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_visibility_grey_900_24dp.png │ │ │ │ └── ic_visibility_off_grey_900_24dp.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_visibility_grey_900_24dp.png │ │ │ │ └── ic_visibility_off_grey_900_24dp.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_visibility_grey_900_24dp.png │ │ │ │ └── ic_visibility_off_grey_900_24dp.png │ │ │ └── drawable-xxhdpi │ │ │ │ ├── ic_visibility_grey_900_24dp.png │ │ │ │ └── ic_visibility_off_grey_900_24dp.png │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── scottyab │ │ │ └── showhidepasswordedittext │ │ │ └── ShowHidePasswordEditText.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── scottyab │ │ │ └── showhidepasswordedittext │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── scottyab │ │ └── showhidepasswordedittext │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── .gitignore ├── docs └── sample_screen_shot.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── CHANGELOG.md ├── gradle.properties ├── gradlew.bat ├── readme.md ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library' 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | .DS_Store 6 | /build 7 | /captures -------------------------------------------------------------------------------- /docs/sample_screen_shot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/docs/sample_screen_shot.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /library/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Show Hide Password Edit Text library 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/assets/fonts/Rubrik-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/assets/fonts/Rubrik-Medium.otf -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/drawable-xhdpi/ic_action_github.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_custom_hide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/drawable-xhdpi/ic_custom_hide.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_custom_show.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/drawable-xhdpi/ic_custom_show.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_custom_hide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/drawable-xxhdpi/ic_custom_hide.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_custom_show.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/drawable-xxhdpi/ic_custom_show.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_github.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Show/Hide Password Sample 3 | Get on Github 4 | 5 | -------------------------------------------------------------------------------- /library/src/main/res/drawable-hdpi/ic_visibility_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-hdpi/ic_visibility_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-mdpi/ic_visibility_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-mdpi/ic_visibility_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/ic_visibility_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-xhdpi/ic_visibility_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/ic_visibility_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-xxhdpi/ic_visibility_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-hdpi/ic_visibility_off_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-hdpi/ic_visibility_off_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-mdpi/ic_visibility_off_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-mdpi/ic_visibility_off_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xhdpi/ic_visibility_off_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-xhdpi/ic_visibility_off_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/res/drawable-xxhdpi/ic_visibility_off_grey_900_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottyab/showhidepasswordedittext/HEAD/library/src/main/res/drawable-xxhdpi/ic_visibility_off_grey_900_24dp.png -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/test/java/com/scottyab/showhidepasswordedittextlibrary/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.scottyab.sample; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /library/src/main/res/values/attrs_showhide_password.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/scottyab/sample/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.scottyab.sample; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /library/src/test/java/com/scottyab/showhidepasswordedittext/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.scottyab.showhidepasswordedittext; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /library/src/androidTest/java/com/scottyab/showhidepasswordedittext/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.scottyab.showhidepasswordedittext; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #795548 4 | #5D4037 5 | #D7CCC8 6 | #00BCD4 7 | #212121 8 | #727272 9 | #FFFFFF 10 | #B6B6B6 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.3" 6 | 7 | defaultConfig { 8 | minSdkVersion 9 9 | targetSdkVersion 23 10 | versionCode 6 11 | versionName "0.6" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | testCompile 'junit:junit:4.12' 24 | compile 'com.android.support:appcompat-v7:23.4.0' 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/scottab/dev/adt-bundle-mac-x86_64/sdk-macosx-v2/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /library/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/scottab/dev/adt-bundle-mac-x86_64/sdk-macosx-v2/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |