0

how to remove these two lines,thank you! you see the black underline and the green underline below the "morning" enter image description here

I saw some solution: android:background="@null" it remove the green underline, but the green underline still in there

jasa
  • 11
  • 1
  • 4
  • 1
    https://stackoverflow.com/questions/47831577/remove-additional-underline-in-edittext – ADM Mar 10 '23 at 05:08
  • android:background="@android:color/transparent" – Seife Mar 10 '23 at 05:41
  • @Seife ops the green underline gone, but the black underline still in there – jasa Mar 10 '23 at 11:56
  • @ADM I fixed the problem, the answer of the guy@Sumit Jain,give me the solution, thank's both of you – jasa Mar 10 '23 at 11:58
  • @Seife I got the solution, you ways+android:inputType="textVisiblePassword", and it works well – jasa Mar 10 '23 at 11:59
  • It would be a greae idea to attach the layout, to better understand, what those lines are – RusArtM Mar 10 '23 at 12:05
  • @RusArtM thanks for you hinting,could you give me some reference materials about this, I want to study it, thank you very much – jasa Mar 10 '23 at 23:26
  • @jasa But I still can't see what your layout made of. Please include your layout xml – RusArtM Mar 12 '23 at 04:05
  • @RusArtM Sorry bro, I think I have misunderstanded your idea, now I know it, the view in my layout, is a linearlayout includes just only one EditText, that's it, But I got it, next time when I post questions, I will attach my layout, thanks for reminding. – jasa Mar 13 '23 at 10:53
  • @jasa If you havn't solved your problem you can edit your post and add the layout code. Was the value in your example set programattically or was it typed manually? Coud it be spanned text? All this would be clear with a small code example. – RusArtM Mar 13 '23 at 12:13
  • 1
    @RusArtM thank you very much, I got the answer, in EditText view I added two attrs: android:background="@android:color/transparent", android:inputType="textVisiblePassword", with these two attrs, I have solved the problem that I asked. – jasa Mar 15 '23 at 05:30

0 Answers0