Since Android does not support showing the day for a date, I added a TextView to my layout.
In DatePicker, I put onDateChangedListener. When the date changes, I determine the day of the week and then set it through a handler to make sure that this is done in the user interface thread:
public void onDateChanged(DatePicker view, final int year,
final int monthOfYear, final int dayOfMonth) {
String dayOfTheWeek = null;
h.sendMessage(h.obtainMessage(0, dayOfTheWeek));
}
final Handler h = new Handler() {
@Override
public void handleMessage(Message msg) {
dayOfWeekTextView.setText((String)msg.obj);
}
};
My problem: when I look at the days in widgets ( Android 4.0 U , I'm not sure! I check what the problem is and not how I determine what String is, it really is setText()in the handler. Commenting out that the part and everything is fine Also, setting hard-coded text there ( dayOfWeekTextView.setText("SOMETHING');) gives the same problem. This causes fluctuations DatePicker.
setText() ? Wunderlist , , , .
HTC One X.
?
Edit:
, Wunderlist! , , DialogFragment. , Wunderlist TextView. ( ;))
, 'getDialog(). setTitle (dayOfWeek)', . : setText ...?