-
Notifications
You must be signed in to change notification settings - Fork 240
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
Header shriking while creating several columns #20
Comments
Hi gabrieltm, |
Actually, when i try to set specific weights on my SortableTableView, some of the other columns shrink in size, also some data in the rows also automatically wrap their texts. Is there a way to make all texts of the rows in a single line only and make them adjust their column width by their size ? I want this for the Headers also if the row data text size is smaller than the headers text size. |
Yes, you can prevent the table data to be wrapped by writing your custom public class SingleLineTableDataAdapter extends SimpleTableDataAdapter {
public SimpleTableDataAdapter(final Context context, final String[][] data) {
super(context, data);
}
public SimpleTableDataAdapter(final Context context, final List<String[]> data) {
super(context, data);
}
@Override
public View getCellView(final int rowIndex, final int columnIndex, final ViewGroup parentView) {
TextView textView = (TextView) super.getCellView(rowIndex, columnIndex, parentView);
textView.setSingleLine(true);
textView.setLines(1);
textView.setEllipsize(null);
...
return textView;
}
} Unfortunately the |
Hello, So it's not possible to prevent this bug of getting my text of the headers being cut off ? |
The bug fix version will be finished this week. Then you are able to put the TableView inside a HorizontalScollView and set a fixes width. |
Sure does ! Thank you very much man |
Have a try |
I'm having a problem while trying to execute the project with the new 1.1.1 library.
Do you have any idea why is this happening ? By the way i upgraded my android studio to 2.0 and gradle build to 2.0 I was using the 1.1.0 version, it works fine, but when i change the version it gives this errors... |
Hi @gabrieltm, |
First, i want to thank you for this amazing lib.
I have a problem while creating several columns, they are shrinking in size and the columns names stay like ("header here..."), i have tried to increase the setColumnWeight but with no success, i already added the horizontal scroll view like the other issues presented. Is there any way to increase the width of the columns ?
The text was updated successfully, but these errors were encountered: