brucetoo / PickView

Date and Province WheelView like IOS
1.1k stars 265 forks source link

Textsize is different after convert number month to date format #52

Open PGAndroid opened 7 years ago

PGAndroid commented 7 years ago

I have converted number month to date format (with MMMM). But after that it is showing wired textsize for month and also separator line doesn't match with other day and year view,

// converting MM to MMMM

public String formatMonth(String month) { String formated_month = ""; SimpleDateFormat monthParse = new SimpleDateFormat("MM"); SimpleDateFormat monthDisplay = new SimpleDateFormat("MMMM"); try { formated_month = monthDisplay.format(monthParse.parse(month)); } catch (ParseException e) { e.printStackTrace(); } return formated_month; }

Also i want to apply custom font to all.

screenshot_2017-10-13-13-39-27

brucetoo commented 7 years ago

"November" string has different measure height compare with "11.2013" string