How to change the color of the line in ICS styled EditText

前端 未结 2 2023
庸人自扰
庸人自扰 2021-01-06 06:00

I and using ABS together with theme holo in my application and i get EditText styled as if in ICS.

But the line color of the EditText is blue by default and for my

相关标签:
2条回答
  • 2021-01-06 06:29

    Try android:background="#00000000" This only for White(or Simply hide the Bottom Line)

    0 讨论(0)
  • 2021-01-06 06:34

    I found the answer in this link where they are using LayerList

    I used a layer-list for creating an ICS styled edittext as it was needed only in one place.

    It works great and no issues found with varying screen resolutions. It wont accept a transparent background but works as needed for me!

    For Full Customization :

    In addition, these are other links where we can customize the ICS styles.

    1. ActionBar Sherlock Style Generator

    2. Holo Style Generator

    3. Holo Theme Custom UI Libraries

    Happy Coding..!! :)

    0 讨论(0)
提交回复
热议问题