This is my code for time(to select a time)..This displays a time in 24 hour format...i need to change that in 12 hours...Where i need to add the code...What code i have to add...Please help me to find out the code
this is my code for time
seekBar_startTime.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onProgressChanged(SeekBar seekBar, int progresValue, boolean fromUser) {
start_Time = String.valueOf(progresValue);
textView_startTime.setText("Event Start Time :" + progresValue);
}
});
seekBar_endTime.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onProgressChanged(SeekBar seekBar, int progresValue, boolean fromUser) {
end_Time = String.valueOf(progresValue);
textView_endTime.setText("Event End Time :" + progresValue);
}
});