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

    Popular posts from this blog

    Verilog Error: output or inout port "Q" must be connected to a structural net expression -

    jasper reports - How to center align barcode using jasperreports and barcode4j -

    c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -