Android Studio Kotlin prefix issue

I started to learn kotlin and Im trying to make an app. I added textInputLayout I want to use this for getting phone number from user and I added prefix like +1 but when I started the emulator and click the edittextlayout prefix is not visible. How can I solve this?

Prefix color is blue btw and I guess this problem is related to the themes section. I am using Theme.AppCompat.DayNight.NoActionBar theme. When I used the default theme it was working.

  • stackoverflow.com/a/70263899/14162959

    – 

  • thanks for the answer but this doesn’t solve my problem. I want to use prefix as normal but thanks I learned something new and now I understand I didn’t say my problem properly I will edit.

    – 

  • Mind showing us how you’re doing it, and we’ll kindly correct it for you

    – 

  • Pls show us your code

    – 

Leave a Comment