I just want this Current situation to Target situation
For more detail, I wanna make timepickerdialog to spinner mode. In my app, it not worked. This is my code:
  public class TimePickerFragment extends DialogFragment {
  ...
  @Override
  public Dialog onCreateDialog (Bundle savedInstanceState) {
    Calendar cal = DateUtils.getCalendar(defaultTime);
    int hour = cal.get(Calendar.HOUR_OF_DAY);
    int minute = cal.get(Calendar.MINUTE);
    // Create a new instance of TimePickerDialog and return it
    boolean is24HourMode = DateUtils.is24HourMode(mActivity);
    TimePickerDialog tpd = new TimePickerDialog(mActivity, R.style.Theme_AppCompat_Dialog_NoBackgroundOrDim, mListener,
        hour, minute, is24HourMode);
    tpd.getWindow().setGravity(Gravity.BOTTOM);
    tpd.setTitle("");
    return tpd;
  }
}
 
    