-1

When I place a text field such as Plain Text, Password, or anything, a grey bar appears below it and I don't want it there. How can I remove it? image

Harley Swift
  • 172
  • 1
  • 11
  • This seems like strictly `android` related question and it's tagged with only `java` tag. Can you please update tags which are more specific for the question? It helps people find it and answer it faster! – Filip May 20 '21 at 22:43
  • Note: How will people know that you have a text box in the middle of your panel if you don't have the indicator bar? – sorifiend May 20 '21 at 22:49

1 Answers1

0

Try to add this code in your xml file (inside your plain Text attributes):

android:background="@android:color/transparent"

Or in your java code:

plainText.setBackgroundResource(android.R.color.transparent);
Eitan Rosati
  • 543
  • 5
  • 18