android - TimePickerDialog theme change -
I have written this code to create a box
  btnDialBoxTime.setOnClickListener (New OnClickListener () {Public void onClick (see arg0) {MyTimePickerDialog timePickerDialog = New MyTimePickerDialog (Advanced CDT.This, android.R.style.Theme_DeviceDefault, TimetList, 0, 0, true); Time Picardiolog .cetital ("set hour and minute" ); Show time picture dialog ();}});    The dialog box appears correctly but the theme is white.  
 I have to be black / gray which is the default of my Nexus 7.  
 Android. R. Style.Medicine does not seem to be working the default.   
 
  Use one of these   
   -   - Traditional (pre-hollow) warning dialogue topic    
-  Five underlying  alertDialog   - with a dark background    - The default alert theme for a device with a light background.  for example :    MyTimePickerDialog timePickerDialog = New MyTimePickerDialog (Advanced CDT.This, TimePickerDialog.THEME_HOLO_DARK, TimetList, 0, 0, true);    Example ">   
 
 
 
 
 
Comments
Post a Comment