SortableTableView icon indicating copy to clipboard operation
SortableTableView copied to clipboard

Setting a dynamic width for horizontal scrolling

Open mandretis opened this issue 5 years ago • 0 comments

This is surely an amazing library and i'm interested in the pro version, but i'm not sure if it does support dynamic width or if i'm just using it the wrong way.

What i want to do is, render all my views with 'wrap-content' as their widths so it can be scrolled horizontally. (To work exactly as .net gridview).

I made some progress with it (by Wrapping a horizontal scrollview around it) but the problem is that the table has to have a fixed size, either match_parent or 1000dp for example.

So Is there a correct way for the table to calculate its width dynamically according to its content's width(preferably by the 'longest row content') ? or perhaps columns to be recycled if 'match_parent' is used to imitate a horizontal scroll behavior?

Thanks in advance.

mandretis avatar Jul 25 '19 21:07 mandretis