2017-07-24 47 views
0

我有一個TimePickerDialog。TimePickerDialog - API 16頂色

pickerDialog = new TimePickerDialog(getContext(), R.style.timepicker, context, 0, 0, true); 

我的風格:

<style name="timepicker" > 
     <item name="android:windowContentOverlay">@color/PrimaryColor</item> 
     <item name="android:windowIsFloating">true</item> 
     <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> 
     <item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item> 
     <item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item> 
     <item name="android:windowTitleStyle">@color/PrimaryColor</item> 
     <item name="android:textAppearanceMedium">@color/PrimaryColor</item> 
     <item name="android:borderlessButtonStyle">@color/PrimaryColor</item> 
     <item name="android:buttonBarStyle">@color/PrimaryColor</item> 
     <item name="android:windowBackground">@color/PrimaryColor</item> 

     <item name="android:background">@color/PrimaryColor</item> 
     <item name="android:textColorPrimary">@color/SecondaryColor</item> 
     <item name="colorAccent">@color/SecondaryColor</item> 
    </style> 

enter image description here

(主= RED,輔助=白)

我怎樣才能顏色,白色部分?也許它只是邊距或填充? 任何人都可以幫助我?

感謝

回答