Prototik / HoloEverywhere

NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE.
MIT License
2.18k stars 608 forks source link

How to change AutoCompleteTextView border color of default theme in android? #849

Closed larrymeng closed 9 years ago

larrymeng commented 9 years ago

I am using AutoCompleteTextView in my android application. I am using Theme.Light as my default theme for my application.

Here is how my AutoCompleteTextView look like http://stackoverflow.com/questions/14378511/how-to-change-autocompletetextview-border-color-of-default-theme-in-android

Now, I want to change the BLUE color border of that AutoCompleteTextView to some other color ,for different selection, keeping the border style as it as. I dont want full border. How to do that?

BraisGabin commented 9 years ago

How is this question related with HoloEverywhere?

Anyway I just answered this question in SO. You can check it.

larrymeng commented 9 years ago

I use HoloEverywhere in my project. And I use AutoCompleteTextView in the code.

I want to change the color of border in AutoCompleteTextView from blue to green. But I have not idea.

So, I explore for help.

Prototik commented 9 years ago

@larrymeng AutoCompleteTextView is extended EditText, so all ways for styling basic EditText applicable for ACTV too. You can colorize default blue background and apply new background for widget via styles or layout.

larrymeng commented 9 years ago

Thanks Prototik. I have tried to do that. But there will exists 4 sided border in AutoCompleteTextView.

How to Achieve this effect: 1) only one bottom border exists. 2) change the color of border.

Thanks.