我AutoCompleteTextView
在我的 android 应用程序中使用。我将Theme.Light
其用作我的应用程序的默认主题。
这是我的AutoCompleteTextView
样子
现在,我想将其蓝色边框更改为AutoCompleteTextView
其他颜色,以进行不同的选择,保持边框样式不变。我不想要完整的边界。怎么做?
我AutoCompleteTextView
在我的 android 应用程序中使用。我将Theme.Light
其用作我的应用程序的默认主题。
这是我的AutoCompleteTextView
样子
现在,我想将其蓝色边框更改为AutoCompleteTextView
其他颜色,以进行不同的选择,保持边框样式不变。我不想要完整的边界。怎么做?
你可以这样试试。。
有关详细信息,请参阅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>
欲了解更多信息主题
您可以使用Holo Colors对其进行着色。它生成 9 个补丁和样式。