Comments (5)
@ioterateam I believe I was able to fix the issue. In some ways it's an Android bug, because:
textView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
textView.setSingleLine(true);
Doing this programmatically (in that order) will also break the password input type.
However TextView
does some stuff during initialization so that an XML style that sets the same attributes behaves as you would expect. I replicated that logic here and added a few tests.
I published a new snapshot so it should update automatically for you (the previous version might stay cached for a day or so).
from paris.
Thanks for creating a new issue for this. I should be able to take a look in the next few days.
from paris.
@ioterateam I looked into this and am unable to reproduce the issue.
There's a test here that asserts rather convincingly that setting inputType
to textPassword
is working. I also played around with a sample and was able to confirm that applying a style containing <item name="android:inputType">textPassword</item>
in the same way that you do was successfully changing the input type (the password was not visible).
At this point I'm pretty sure it's not a bug with Paris but rather an issue on your end. I would recommend trying it out with a simpler style that doesn't change any other attributes. How are you currently verifying that the input type is being set to a visible password rather than the standard one? Note that the last character of the password might be visible even if the input type is textPassword
. textVisiblePassword
makes it completely visible.
from paris.
i found a bug that makes it visible, it's because of attribute <item name="android:singleLine">true</item>
in the style. When I exclude it, it's work like normal and show me textPassword
, can you re-check it?
from paris.
Thanks for investigating some more, I'm able to repro now. I'll look into this soon.
from paris.
Related Issues (20)
- Issues in AS design inspection with TypedArrayTypedArrayWrapper class
- com.airbnb.paris.proxies.d.<init> (TextViewProxy.kt:-1) HOT 2
- drawableStart with style not applied! HOT 1
- Throws Fatal Exception randomly - not able to figure out the issue
- Applying style for MaterialButton HOT 2
- Support KSP
- custom view with internal do not work well
- Ask for advice on how to set the style in the conditional statement
- Applying background styles for Material Card View not working
- android.content.res.Resources$NotFoundException: Font resource ID #0x104039d could not be retrieved HOT 1
- cannot run the sample project, got `java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext ` HOT 1
- @Style doesn't work at Function
- Problem with kapt when using with epoxy
- Setting style overrides attributes in XML layout
- android:foregroundTint not working for TextView
- Custom View Attributes: "Resource IDs will be non-final by default in Android Gradle Plugin version 8.0, avoid using them as annotation attributes"
- TextView paris.extensions.style works on Android 12 but crashed on Android 9 with customized style.
- Unable to build project with version 2.0.2
- Errors building library project with Butterknife + ksp HOT 2
- update ksp to kapt
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 paris.