Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid : Create a table programatically with n columns and different column types : How to do?
    primarykey
    data
    text
    <p>I have an requirement to fulfill and I would like to ask, whether I am going into the right direction.</p> <p>I will try to post the requirement as clear as possible:</p> <h2>I need to create a table programatically during runtime.</h2> <ol> <li>The number of columns and headers (1 : 1) are received during runtime.</li> <li>The headers can be of any basic type like : Label, TextView, CheckBox, Button ( meaning, they do not necessary define the columns type ).</li> <li>The headers are visible or not, received during runtime</li> <li>The column itself also can be of the basic types like Label, TextView, CheckBox, Button ( but this stays, means, the column type of the first table row defines all following rows' column ).</li> <li>The columns width will be received at runtime.</li> <li>A vertical scrollbar can be visible or not, and their width will be received at runtime.</li> <li>The amount of visible rows will be received at runtime.</li> <li>The location and size of the table will be received at runtime ( embedded into a fragment's AbsoluteLayout), but it is not resizable once it has been created.</li> <li>Depending on the type of the column, an event handler ( consumer ) must be attached.... perhaps already possible... </li> <li>The height and width of the headers also will be received during runtime</li> <li>The rows height also will be received during runtime, all columns have he same height, and all the rows also. So one value for all rows.</li> <li>A horzontal scroll shall be faked, meaning, setting a special amount of left columns to invisible and/or setting their size to 0, so that the following columns can "rearrange" and slide to the place, where the predecessors have been visible</li> </ol> <hr> <p>Question:</p> <p>Until now I have been reading about TableView in order to realize the requirement. First I would like to know, whether the TableView is sufficient enough to realize the requirements.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload