2017-10-20 109 views
-1

我想改變的下方MaterialBetterSpinner微調,請幫助底線顏色..如何更改底線顏色的材質更好的微調?

<com.weiwangcn.betterspinner.library.material.MaterialBetterSpinner 
         android:id="@+id/spUserType" 
         android:layout_width="match_parent" 
         android:layout_height="wrap_content" 
         android:layout_marginLeft="10dp" 
         android:layout_marginRight="10dp" 
         android:hint="Select a Option" 
         android:paddingLeft="0dp" 
         app:met_floatingLabel="normal" 
         app:met_textColorHint="#757575"/> 

回答

1

試試這個

styles.xml 

<style name="ThemeSpinner"> 
    <!-- Color when pressed --> 
    <item name="colorAccent">#ffa000</item> 
    <!-- Default color for the dropdown arrow and line --> 
    <item name="colorControlNormal">#ffc107</item> 
</style> 
layout.xml 

<Spinner 
    style="@style/Widget.AppCompat.Spinner.Underlined" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:theme="@style/ThemeSpinner" /> 
+0

你的答案是與正常的微調,所以請儘量解釋相關答案MaterialBetterSpinner。 –