CountDownTextView
CountDownTextView copied to clipboard
CountDownTextView Lib Bug
This library does not support more than 20 days for count down. For example Date date1,date2; SimpleDateFormat format = new SimpleDateFormat("dd/mm/yyyy"); long millss=0; long mins = 0; try {
//Dates to compare
String FinalDate= "25/06/2016";
//Setting dates
date1 = format.parse(getFormattedDate());
date2 = format.parse(FinalDate);
millss = Math.abs(date2.getTime() - date1.getTime());
long x = 60000;
mins = millss/x;
} catch (Exception exception) {
Log.e("DIDN'T WORK", "exception " + exception);
}
final int TIME_SHOW_D_H_M_S = 10;
tender_projectValidity.setTimeFormat(TIME_SHOW_D_H_M_S);
long timeInFuture = SystemClock.elapsedRealtime() + 1000 * 60 * mins;
tender_projectValidity.setTimeInFuture(timeInFuture);
tender_projectValidity.setAutoDisplayText(true);
tender_projectValidity.start();
//////////////////////////////// Kindly fix this issue///////////// Thanks