2017-05-16 76 views

回答

0

使用backgroundTint。

android:backgroundTint="@color/white" 
0

要改變底線的顏色,你可以在應用主題試試這個象下面這樣:

<style name="Theme.App.Base" parent="Theme.AppCompat.Light.DarkActionBar"> 
<item name="colorControlNormal">#fffff</item> 
<item name="colorControlActivated">#fffff</item> 
<item name="colorControlHighlight">#fffff</item> 
</style> 
0

我有一個風格爲地方我重寫

<style name="FormLabel"> 
    <item name="colorControlNormal">@color/white</item> 
    <item name="colorControlActivated">@color/white</item> 
    <item name="colorControlHighlight">@color/white</item> 
</style> 

和我設置這種風格的EditText圍繞TextInputLayout

0

請在文本輸入佈局應用自定義主題

例如

<style name="MYAppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 
    <!-- Customize your theme here. --> 
    <item name="colorControlNormal">#c5c5c5</item> 
    <item name="colorControlActivated">@color/colorPrimary</item> 
    <item name="colorControlHighlight">@color/colorPrimaryDark</item> 
</style> 
0

試試這個我的朋友

<style name="MYAppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 
<!-- Customize your theme here. --> 
<item name="colorPrimary">#FF0000</item> 
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> 
<item name="colorAccent">#FF0000</item> 

0

<!-- Base application theme. --> 
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 
    <!-- Customize your theme here. --> 
    <item name="colorPrimary">#FFFFFF</item> 
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item> 
    <item name="colorAccent">#FFFFFF</item> 
</style> 

相關問題