Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

descriptor.setCellConfig not working #32

Open
fabioDnaweb opened this issue Jun 22, 2017 · 1 comment
Open

descriptor.setCellConfig not working #32

fabioDnaweb opened this issue Jun 22, 2017 · 1 comment

Comments

@fabioDnaweb
Copy link

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
Copy link

btraas commented Jul 26, 2018

Did you get this working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants