quemb / QMBForm

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

descriptor.setCellConfig not working #32

Open fabioDnaweb opened 7 years ago

fabioDnaweb commented 7 years ago

This is the example code: ` // More styles and colors for cells HashMap<String, Object> cellConfig = new HashMap<>(8);

    // TextAppearance for section, label, value and button
    cellConfig.put(CellDescriptor.APPEARANCE_SECTION, Integer.valueOf(R.style.TextAppearance_Form_Section));
    cellConfig.put(CellDescriptor.APPEARANCE_TEXT_LABEL, Integer.valueOf(R.style.TextAppearance_Form_Label));
    cellConfig.put(CellDescriptor.APPEARANCE_TEXT_VALUE, Integer.valueOf(R.style.TextAppearance_Form_Value));
    cellConfig.put(CellDescriptor.APPEARANCE_BUTTON, Integer.valueOf(R.style.TextAppearance_Form_Button));

    // Disabled color for label and value
    cellConfig.put(CellDescriptor.COLOR_LABEL, Integer.valueOf(0x80C0FFC0));
    cellConfig.put(CellDescriptor.COLOR_VALUE, Integer.valueOf(0xC0C0FFC0));

    // Disabled color for label and value
    cellConfig.put(CellDescriptor.COLOR_LABEL_DISABLED, Integer.valueOf(0x80FFC0C0));
    cellConfig.put(CellDescriptor.COLOR_VALUE_DISABLED, Integer.valueOf(0xC0FFC0C0));

    FormDescriptor descriptor = FormDescriptor.newInstance();
    descriptor.setCellConfig(cellConfig);`

but not set style; method setCellConfig not working!

btraas commented 6 years ago

Did you get this working?