You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@enchev Personally I would expect background-color to change the whole background of the TextField, because that’s how it works on the web—see https://jsfiddle.net/oh1hueau/, for example.
As a web developer I would want to do TextField { border-width: 0 0 1 0; border-color: green; }, because that’s how I’d accomplish this on the web, but I’m not sure how possible that is to make work on both Android and iOS. As a fallback I’d prefer some made up property like --android-line-color, so TextField { --android-line-color: green; }.
Reacted by Calebe Aires, Vladimir Enchev, Brad Martin, joshcomley, Alexander Ziskind, Mahmoud Mabrouk and Tuqire Hussain
hello, i also need to change the line color and, if possible, the placeholder color of a textfield both on android and ios. what do you suggest?
thank you
edit: solved for the placeholder and for android, i changed values-v21 and it works(what is the difference between values and 21)?
Activity
tsonevn commentedon Sep 1, 2016
Hi @triniwiz,
Thank you for your issue. I found that similar issue - #859 exist and this feature soon will be available.
Regards,
@tsonevn
NathanaelA commentedon Sep 1, 2016
triniwiz commentedon Sep 1, 2016
@tsonevn as @NathanaelA metioned this issue is completely different
enchev commentedon Oct 19, 2016
Hey folks,
I've just made background-color to control this for Android TextField:
What do you think?
tjvantoll commentedon Oct 19, 2016
@enchev Personally I would expect
background-colorto change the whole background of the TextField, because that’s how it works on the web—see https://jsfiddle.net/oh1hueau/, for example.As a web developer I would want to do
TextField { border-width: 0 0 1 0; border-color: green; }, because that’s how I’d accomplish this on the web, but I’m not sure how possible that is to make work on both Android and iOS. As a fallback I’d prefer some made up property like--android-line-color, soTextField { --android-line-color: green; }.1 remaining item
magar91 commentedon Jul 28, 2017
Hello I am trying to do this in some of my app's textfields is there a css prop? if there is which is it?
cgebe commentedon Aug 31, 2017
Hey guys, how can i change the
focusedcolor?--android-line-colordoes only control the non focused color.erkanarslan commentedon Dec 7, 2017
Setting border width to 0 does nothing. It is not working.
waszqba commentedon Apr 4, 2018
Bump, how can we change the underline property?
cgebe commentedon Apr 4, 2018
In
Android > Values > colors.xmlchange<color name="ns_accent">#00264d</color>peppeg85 commentedon Aug 2, 2018
hello, i also need to change the line color and, if possible, the placeholder color of a textfield both on android and ios. what do you suggest?
thank you
edit: solved for the placeholder and for android, i changed values-v21 and it works(what is the difference between values and 21)?
now remains for ios....
thanks
lock commentedon Aug 26, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.