Android Question SD_FlexGrid get cell color? Or other ways to set state of items

HappyDad

Member
Licensed User
Longtime User
Using SD_FlexGrid (https://www.b4x.com/android/forum/threads/b4x-xui-sd-flexgrid-table.100897/),
how can I get the current cell background color?
I am setting the background color of a cell using SetCellCustomize, but I can't find how to get the current cell background color.

I am using SD_FlexGrid to display a list of items, and allow the user to select multiple cells.
The clicked cell will change color, indicating that it is selected.
If the cell is clicked again, it will be deselected.

So I need to know when the user click on some cell, what the state (background color) is, and use code to change the color.

I know I can manually save all the colors, but if there is a native way to do it, it will be better.

Or, is there any other library to acomplish this task?
 

Star-Dust

Expert
Licensed User
Longtime User
Currently this feature does not exist. It is not possible to know the background color of the cell. It will be available in one of the next updates.
 
Upvote 0
Top