GithubHelp home page GithubHelp logo

maksim88 / passwordedittext Goto Github PK

View Code? Open in Web Editor NEW
433.0 433.0 71.0 6.8 MB

A custom EditText with a switchable icon which shows or hides the password

Home Page: http://maksim88.github.io/PasswordEditText/

License: MIT License

Java 100.00%
android android-library material password

passwordedittext's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

passwordedittext's Issues

drawableleft remvoves when PasswordEditText option is clicked

I am using PasswordEditText under TextInputLayout. Here it is my part of code.

`<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>

<com.maksim88.passwordedittext.PasswordEditText
                        android:id="@+id/password"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="@android:color/transparent"
                        android:fontFamily="sans-serif"
                        android:hint="Password"
                        android:drawableLeft="@drawable/ic_key"
                        android:inputType="textPassword"
                        android:padding="8dp"
                        android:textSize="18sp"
                        android:typeface="normal"
                        />

</android.support.design.widget.TextInputLayout>`

Share PassReveal icon with another icon

Hi!, first for all, thanks for answer,

I have a PasswordEditText with an "Info" icon that opens a modal with special information.

Is there any configuration that I can use two show both icons (info and pass reveal) together?

Have a nice day!

Improvement: Button toggle or touch

Let the user decide whether the button to show/hide the password is toggleable ( state saved)
or the password is just shown when the user holds the button and disappears when the finger leaves the screen.

android.view.InflateException: Binary XML file line #73: Error inflating class com.maksim88.passwordedittext.PasswordEditText

I went in and check your PasswordEditText class. It imports import android.support.design.widget.TextInputEditText; which is not resolvable. I thought it's supposed to be android.support.design.widget.TextInputEditText instead?

More of the stacktrace:

E/AndroidRuntime: FATAL EXCEPTION: main
                                                                 android.view.InflateException: Binary XML file line #73: Error inflating class com.maksim88.passwordedittext.PasswordEditText
                                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:757)
                                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
                                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
                                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
                                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
                                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
                                                                     at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
                                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:414)

question

Hi! Great library. The Edit Text styling isn't 'materialized' on devices running KitKat though.

Share PassReveal icon with another icon

Hi!, first for all, thanks for answer,

I have a PasswordEditText with an "Info" icon that opens a modal with special information.

Is there any configuration that I can use two show both icons (info and pass reveal) together?

Have a nice day!

Using `app` namespace for attributes

You should not use generic names for your attributes as this simply may conflict with other existing libs (yes, these shall be fixed too). Make it unique like by adding pet_ prefix to it or so.

Password icon should not always be shown when switching between fragments

Due to:

    @Override
    public void onRestoreInstanceState(Parcelable state) {
        SavedState savedState = (SavedState) state;
        super.onRestoreInstanceState(savedState.getSuperState());
        passwordVisible = savedState.isShowingIcon();
        handlePasswordInputVisibility();
        showPasswordVisibilityIndicator(true);
    }

When switching between fragments that has the PasswordEditText, the indicator is always shown even if there is no text in the EditText.

A solution would be to comment this line out.

switch button triggers copy / paste action?

every time after switching show/hide status, one paste action is triggered. I'm not sure whether this is a common issue.

the temp solution is to add android:longClickable="false" for edittext.

SetError

Hi Maksim,

I really liked your Password Text Field, but i got a problem using it, once I have called the method setError("some error message"), the show/hide icon, becomes invisible, do you have any idea how to fix that?

Thanks, and congratulations for this project.

Android support library v.24.2.0 issue

After upgraded to Android support library v.24.2.0 icon issue appears.
When user starts type password icon jumps to the center of the edit box.
Reproduced with support library v.24.2.0 only (especially with com.android.support:design:24.2.0)

screenshot from 2016-08-17 19-25-20

Poluted repo and ic_launcher file problems

The repo is polluted by .idea/ folders that should not be here, but worse, your library also provides ic_launcher files, conflicting with any app that tries to incorporate your PasswordEditText

Make lib obsolete?

While I understand this may be a bit painful, I suggest to flag this library as obsolete visible way, (i.e. by adding more info in README) as same feature is now provided by TextInputLayout.

The point here is that abandoning non-standard libs in favors of standard ones is beneficial for everyone (but author of the former :). And since I do not expect you to work on your lib much, it'd be nice to tell the potential users that this dependency can be avoided in favor of standard libs.

Anyway, thanks for the lib I was using for so long :)

JitPack

@maksim88,

Could you help me with a problem?
I'm trying to publish an library test build to jitpack, but I didn't figure out what's going wrong, I got the error: No releases found. Try a commit or -SNAPSHOT

Do you know how can I manage this.

(Yeah, I know, this is not a PasswordEditText related question, but I would be glad if you could help me)

on start password should by hidden

i think like in subject, when open ex. log activity, password should be hidden.
i add two lines into your project:

141 passwordVisible = true;
142 togglePasswordIconVisibility();

This library is causing Rendering problem.

When I first used it, it was ok but now, it creating a problem in Rendering.
First I thought it might be problem In Studio 2.3 beta version. But after debugging it more, I got the issue.
As I removed this lib. everything works fine now. I think there must be some issue in library. Please check it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.