如何在android中更改默认主题的AutoCompleteTextView边框颜色?

时间:2013-01-17 11:53:42

标签: android border autocompletetextview

我在我的Android应用程序中使用AutoCompleteTextView。我使用Theme.Light作为我的应用程序的默认主题。

以下是我AutoCompleteTextView的样子 enter image description here

现在,我想将AutoCompleteTextView的蓝色边框更改为其他颜色,以进行不同的选择,保持边框样式。我不想要完全的边界。怎么做?

2 个答案:

答案 0 :(得分:0)

你可以尝试这样..

有关详细信息,请参阅http://www.androidworks.com/changing-the-android-edittext-ui-widget

对于其他主题实现,请采用这种方式  在你的应用程序中的清单

    android:theme="@style/firsttheme"

IN res / values,您可以定义theme.xml

<resources> 
    <style name="firsttheme" parent="@android:style/Theme" > 
       <item name="android:_DEFAULT_BASE_COLOR_1">#XXXXXX</item>
       <item name="android:windowNoTitle">true</item>
        ... . 
    </style>
</resources>

了解更多信息theme

答案 1 :(得分:0)

您可以使用Holo Colors为其着色。它生成9个补丁和样式。

相关问题