quemb / QMBForm

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

Button clicks, Date not setting when creating new Activity #18

Open kagalenitin opened 9 years ago

kagalenitin commented 9 years ago

I created a new Activity and added textbox, button, and dateinline.

My code: final RowDescriptor textDisabled = RowDescriptor.newInstance("txtLocationDisabled",RowDescriptor.FormRowDescriptorTypeText, "", new Value("Click on Location to Set Pickup Location")); textDisabled.setDisabled(true); sectionDescriptor.addRow(textDisabled);

    btnPickupLocation.setOnFormRowClickListener(new OnFormRowClickListener() {
        @Override
        public void onFormRowClick(FormItemDescriptor itemDescriptor) {
            if (textDisabled.getValue().equals("Click on Location Button")) {
                textDisabled.setValue(new Value<String>("Set Pickup Location"));
            }
        }
    });
    sectionDescriptor.addRow(btnPickupLocation);

Next, I then used the SampleFormFragment.java from the controller package and modified it. I am not able to upload the modified text file. I run into same issue. Can someone take a look at it please and let me know what am I doing wrong. Appreciate your help in advance. Also is there any active development happening?