2014-01-13 94 views
3

我想將自定義燈光主題應用於android TimePicker。目前,我有這樣的代碼:將自定義燈光主題應用於android timePicker

主題說明:

<style name="MyTheme" parent="android:Theme.Holo.Light"> 
     <item name="android:windowActionBar">false</item> 
     <item name="android:windowNoTitle">true</item> 
</style> 

TimePicker描述:

<TimePicker 
     style="@style/MyTheme" 
     android:id="@+id/timePicker1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_centerHorizontal="true" 
     android:layout_below="@+id/textView3" 
     android:layout_marginTop="30dp" 
     android:layout_centerVertical="true" /> 

但我TimePicker的文本顏色爲黑色還是,它看起來在黑暗的背景非常糟糕。那麼我應該怎麼做才能改變它?

回答

0

試試這個!
將線條樣式=「@ style/MyTheme」更改爲android:theme =「@ style/MyTheme」