quemb / QMBForm

Create simple Android forms
MIT License
180 stars 43 forks source link

Date Dialog and Picker row values not being updated #23

Open brettalcox opened 8 years ago

brettalcox commented 8 years ago

As the title says, the Date Dialog and Picker Row values do not update after the value is changed. When i use the sample fragment included, it works fine...but when i cut out just the rows I need, it stops working. Whenever the onValueChanged method gets called, I can print the old and new value, and it is updating the values correctly, just not on the screen. I'm using the emulator if that makes any difference.

realcarlos commented 8 years ago

even the sample , Date Inline could not be clicked, and Date Dialog not change when selected date from dialog

Poncholay commented 7 years ago

I have the same problem. It works in the custom fragment provided but not in the annotated one. But in my code I cannot make it work whatever I do.

appmonkey8010 commented 7 years ago

I have done a workaround to fix this problem.

Just update the form on value change:

@Override public void onValueChanged(RowDescriptor rowDescriptor, Value<?> oldValue, Value<?> newValue) { row.setValue(newValue); mFormManager.updateRows(); }