HoloEverywhere TimePickerDialog round instead of square with two columns?

1.3k Views Asked by At

I am using example from HoloEveryWhere TimePickerDialog

import android.os.Bundle;
import android.text.format.DateFormat;

import org.holoeverywhere.widget.Toast;
import org.holoeverywhere.widget.datetimepicker.time.RadialPickerLayout;
import org.holoeverywhere.widget.datetimepicker.time.TimePickerDialog;

    public class PickersTimePickerFragment extends TimePickerDialog implements TimePickerDialog.OnTimeSetListener {
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            Calendar calendar = Calendar.getInstance();
            calendar.setTimeInMillis(System.currentTimeMillis());
            initialize(this, 23, 45, DateFormat.is24HourFormat(getActivity()));
        }

        @Override
        public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
            Toast.makeText(getSupportActivity(), String.format("Set time: %1$d:%2$d", hourOfDay, minute), Toast.LENGTH_SHORT).show();
        }
    }


But when I try use it I get wrong time picker.
In HoloEverywhere TimePickerDialog shows ok, but in my app it's this round annoying picker...

enter image description here

What should I do more? I need this holo normal time picker with two columns..

1

There are 1 best solutions below

2
On

Old-style date/time pickers has been removed from library. You can use a 3rd-party backports, e.g. android-timepicker by Simon.