The TimePickerDialog widget in PreferenceScreen in landscape mode is too small. screenshot
I've tried out both approaches (PreferenceActivity and PreferenceFragments) according to these instructions: TimePicker in PreferenceScreen
The TimePickerDialog layout is empty in landscape mode, when using a timepicker title. So I've disabled the title. In the PreferenceActivity Version I've added setDialogTitle("");
to TimePreference. In the PreferenceFragmentCompat Version I've added the following code to TimePreference:
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
Dialog dialog = super.onCreateDialog(savedInstanceState);
dialog.setTitle("");
return dialog;
}
In both versions, the clock is presented in landscape, but the widget is too small; (I have no problems with too small widgets, when using timepickerdialogs without titles outside of the PreferenceScreen)
Any ideas how to implement TimePicker in the PreferenceScreen, so that the layout is ok in landscape mode?