2013-01-17 39 views
1

我在我的android应用程序中使用AutoCompleteTextView。我使用Theme.Light作为我的应用程序的默认主题。如何在android中更改默认主题的AutoCompleteTextView边框颜色?

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

现在,我想的是AutoCompleteTextView的蓝色边框更改为其他的颜色,不同的选择,保持边框的样式,因为它作为。我不想要完整的边框。怎么做?

+0

试试这个http://stackoverflow.com/questions/11485595/change-edittext-border-color –

回答

0

你可以尝试这样的..

看到http://www.androidworks.com/changing-the-android-edittext-ui-widget的细节

对于其他主题的实现去这样 在您的清单中的应用

android:theme="@style/firsttheme" 

在res /值,您可以define 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

+0

@Janmejoy ..你能告诉我如何改变上面的蓝色到红色 – Bharath

+0

@TaruniNeema你想要改变主题或只有边框 – Janmejoy

+0

@TaruniNeema试试这个链接的主题..http://janrain.com/blog/introduction-to-android-theme-customization/ – Janmejoy

0

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

相关问题