evrencoskun / TableView

TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
MIT License
3.14k stars 459 forks source link

Cell height not updated after horizontal scroll #229

Open LunevNF opened 5 years ago

LunevNF commented 5 years ago

Hi. Thanks for good lib. I have the problem:

  1. cell's xml contains one textview (in container - LinearLayout). textView:
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

LinearLayout (container):

android:layout_width="wrap_content"
android:layout_height="match_parent" ----- for white background (default is gray) and for full cell clickable area.
  1. At first column cell's textView has 1 line of text. Last cell at row has textView with 2 lines of text.

  2. When I scroll horizontaly from 1 cell to end cell, end cell show me height like first cell at row, but last cell has two lines with text (height must be bigger, but not).

Question: how to update table and visible cells for showing actual height? (at screenshot cells in red border must be with percentage) Sorry for my Russian English! photo_2019-05-01_15-49-12

LunevNF commented 5 years ago

So, I need to make row height using max cell height value at this row. This issue actual for column headers height too (last header with 3 text lines)

LunevNF commented 5 years ago

Now, I just set minLines = 2 for textView