Open LancelotLiu opened 12 years ago
Because the native class DatePickerDialog in Android 4.0 shows "Set Date" in title rather than date information as before, create a new customize DatePickerDialog to display date in the title.
因為 Android 4.0 原生的 DatePickerDialog 只會在標題顯示「設定日期」,而不會顯示日期資訊,所以增加一個自訂的 DatePickerDialog 在標題顯示日期資訊。
Native DatePickerDialog before 4.0
Native DatePickerDialog after 4.0
Customize DatePickerDialog (both before and after 4.0)
Doesn't this imply that we expect the user to not being able to remember the actual date? I mean the standard date shown is the current date.
Because the native class DatePickerDialog in Android 4.0 shows "Set Date" in title rather than date information as before, create a new customize DatePickerDialog to display date in the title.
因為 Android 4.0 原生的 DatePickerDialog 只會在標題顯示「設定日期」,而不會顯示日期資訊,所以增加一個自訂的 DatePickerDialog 在標題顯示日期資訊。
Native DatePickerDialog before 4.0![01](https://lh5.googleusercontent.com/-FL7PwCsc_s4/T9b6wM3mvnI/AAAAAAAAMj4/WNun0WlPYas/s800/20120612_003.JPG)
Native DatePickerDialog after 4.0![02](https://lh3.googleusercontent.com/-rSfmRiUz0BM/T9b67hFmp0I/AAAAAAAAMkA/Xvkwxi2FQJU/s800/20120612_002.JPG)
Customize DatePickerDialog (both before and after 4.0)![03](https://lh4.googleusercontent.com/-8gEpqIc43zo/T9b7Hu5LQkI/AAAAAAAAMkI/_rnCK4GAkhg/s800/20120612_001.JPG)