question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hide TextInput border or allow transparent borderColor (Android)

See original GitHub issue

If 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: index

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mpostcommented, Feb 20, 2017

@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 (and Picker) background property on Android.

1reaction
mpostcommented, Feb 20, 2017

@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 the InputText. This will hide the underline (which is in fact the background image of the view on Android).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found