ISchwarz23 / SortableTableView

An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
Apache License 2.0
1.05k stars 237 forks source link

unable to import model #167

Open kk99999 opened 6 years ago

kk99999 commented 6 years ago

I need to set width of the column. So when I try to import model to get TableColumnModel, it gives an error. I am using 2.2. 0 version. import de.codecrafters.tableview.model.TableColumnModel;

kk99999 commented 6 years ago

Basically, I am not able to set the width of the column as shown in the example because I cannot import the model. Is this a pro feature?

ISchwarz23 commented 6 years ago

Hi @kk99999,

no, this is not a pro feature. In version 2.2.0 you set the column width using TableView#setColumnWeight(final int columnIndex, final int columnWeight). You can find the readme file of version 2.2.0 here: https://github.com/ISchwarz23/SortableTableView/blob/v2.2.0/README.md