Comments (3)
I just saw #3 - seems related :-)
from passwordview.
The piece of code that generates the vibration is this one:
@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP
&& event.getX() >= (getRight() - getCompoundDrawables()[2].getBounds().width())) {
visible = !visible;
setup();
invalidate();
return true; // <---- REMOVE THIS TO REMOVE VIBRATION
}
return super.onTouchEvent(event);
}
I removed the return true; line and now there is no more vibration.
Hope this help.
from passwordview.
It's caused by a click on the TextView. By handling only MotionEvent.UP, I was allowing the TextView to handle MotionEvent.DOWN, etc as usual and its default behavior is to vibrate. I'm going to investigate more to be sure it's gone, but I'm no longer seeing it:
from passwordview.
Related Issues (16)
- Add information about licensing HOT 4
- clicked coordinate calculation error of eye icon HOT 2
- Vector Drawables Pre-Lollipop HOT 4
- Extend AppCompatEditText instead of EditText HOT 1
- Support other password input types
- The non highlighted underline remains visible when PasswordView is highlighted. HOT 2
- Add touch highlight to eye
- Support relative padding (paddingStart, etc)
- Add support for accessibility
- PasswordView cannot be shown in the Android Studio Preview window HOT 1
- Can you add a CHANGELOG
- De-deprecating this library ? HOT 1
- 建议(advice)
- Application crashes if password field is blank with validation too
- Using setError invalidates the eye toggle HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passwordview.