private void reorderSpinners() {
char[] order = DateFormat.getDateFormatOrder(getContext());
final int spinnerCount = order.length;
for (int i = 0; i < spinnerCount; i++) {
switch (order[i]) {
case DateFormat.DATE:
pushSpinner(daySpinner, spinnerCount, i);
break;
case DateFormat.MONTH:
pushSpinner(monthSpinner, spinnerCount, i);
break;
case DateFormat.YEAR:
pushSpinner(yearSpinner, spinnerCount, i);
break;
}
}
}
找不到符號變量DATE 找不到符號變量MONTH 找不到符號變量YEAR的Android工作室搖籃生成錯誤
檢查文檔的可用選項:http://developer.android.com/reference/java/text/DateFormat.html –