quemb / QMBForm

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

update list view by changing values to form? #6

Open ohdonpiano opened 9 years ago

ohdonpiano commented 9 years ago

Hello,

I've issues updating the List View without the need of build the form descriptor again. How to do it?

This works, but makes the List View scroll up:

FormDescriptor descriptor = factory.createFormDescriptorFromAnnotatedClass(form);
        descriptor.setOnFormRowValueChangedListener(this);
        // Render
        formManager.setup(descriptor, commandsListView, this);
        formManager.setOnFormRowClickListener(this);

This does not work, because the form being modified is not used inside FormDescriptor anymore:

formManager.updateRows();

So, how to update the form, update formManager, call updateRows() ?

Many Thanks