相关疑难解决方法(0)

在android DatePickerDialog中将语言设置为法语

有没有办法DatePickerDialog用法语显示日期

我搜索了这个,但没有找到结果

这是我的代码:

 Calendar c = Calendar.getInstance();

 picker = new DatePickerDialog(PaymentView.this, 
                               PaymentView.this,
                   c.get(Calendar.YEAR), 
                               c.get(Calendar.MONTH),
                   c.get(Calendar.DAY_OF_MONTH));

 picker.setIcon(R.drawable.ic_launcher);
 picker.setTitle("Choisir la date");
 picker.getDatePicker().setMinDate(System.currentTimeMillis() - 2000);
Run Code Online (Sandbox Code Playgroud)

而不是星期五,2014年11月21日我希望有法语缩写我还添加了在实例化之前:

 Locale locale = new Locale("FR");
 Locale.setDefault(locale);
 Configuration config = new Configuration();
 config.locale = locale;
 getApplicationContext().getResources().updateConfiguration(config, null);
Run Code Online (Sandbox Code Playgroud)

android localization datepicker

13
推荐指数
4
解决办法
2万
查看次数

标签 统计

android ×1

datepicker ×1

localization ×1