Android : Android TimePickerDialog material design color

on Friday, January 9, 2015


I am using a time picker dialog in my app. I am also using appcompat to give my app material design theme. The dialog however stays with the default teal accent color (my accent is a light blue).


http://oi62.tinypic.com/mm4vh5.jpg


so in my code I tried setting the dialog theme to my own and it works accept it makes it fullscreen



mTimePicker = new TimePickerDialog(ctx, R.style.AppTheme new TimePickerDialog.OnTimeSetListener() {->}, hour, minute, DateFormat.is24HourFormat(context));


http://oi59.tinypic.com/30atmdw.jpg


does anyone know how to set the TimePickerDialog to show correctly with my colors instead of the default ones?


0 comments:

Post a Comment