1

AutoCompleteTextView在我的 android 应用程序中使用。我将Theme.Light其用作我的应用程序的默认主题。

这是我的AutoCompleteTextView样子 在此处输入图像描述

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

4

2 回答 2

0

你可以这样试试。。

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

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

    android:theme="@style/firsttheme"

在 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>

欲了解更多信息主题

于 2013-01-17T12:02:18.610 回答
0

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

于 2014-09-29T08:08:54.330 回答