Hide TextInput border or allow transparent borderColor (Android)
See original GitHub issueIf TextInput
borderColor is set to transparent
or rgba(0, 0, 0, 0)
, alpha value is ignored and borderColor is still visible (black color).
This is very annoying because default behavior looks ugly in many cases and prevents customization of UI.
There is no problem in iOS, transparent color actually hides border… Only problem is Android TextInput.
new tabris.TextInput({
top: 20, left: '20%', right: '20%',
message: 'Test Message',
borderColor: 'transparent'
}).appendTo(tabris.ui.contentView);
Technically it’s possible and it shouldn’t be hard thing to do since many apps are using transparent border to customize UI.
WhatsApp for example:
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to change the border color of a text input in a react native ...
Use the below code that helps to change the border color of react ... headerText}> Remove TextInput Component Bottom Underline in React ...
Read more >How to Remove and Style the Border Around Text Input Boxes ...
To have only the bottom border, set the border-bottom-style to "groove" and then, add a background-color.
Read more >border-color - CSS: Cascading Style Sheets - MDN Web Docs
This is a box with a border around it. Each side can be set individually using border-top-color , border-right-color , border-bottom-color , ...
Read more >Setting Border Color of TextInput Component In React Native
React native TextInput border color. This tutorial explains how to change border color of TextInput Component in react native application.
Read more >TextInputLayout Styling - Medium
Styling of each element of the TextInputLayout. Change the EditText bubble color. Change default outline border color for TextInputLayout.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bev-on @ishigo1987 We have fixed the issue in the latest nightly build for the 2.x stream. You could rebuild your app to make use of transparency in the
TextInput
(andPicker
)background
property on Android.@bev-on you are right that this behavior is counter-intuitive to the users expectation. We will look into it. As a workaround you can set the
backgroundImage
to null on theInputText
. This will hide the underline (which is in fact the background image of the view on Android).