I\'ve created a TimePicker in layout and I want it to show time with format 24h.
Can you help me? Thanks.
You just have to retrieve the TimePicker instance from the view after inflating it, then you can modify the widget.
Ids are arbitrary:
View v=getActivity().getLayoutInflater().inflate(R.layout.dialog_time, null);
TimePicker timePicker=(TimePicker)v.findViewById(R.id.dialog_time_timePicker);
timePicker.setIs24HourView(true);