How can I make an automatic table, with organization and "paging" in android?

0

I need to make a data table with about 5 to 6 columns, with data from multiple arrays. The goal is to be able to have the most similar possible to a management table where the user can organize the table by name, by id and by there goes and has to have pagination to avoid that it is a very big table.

First question what is the best design to do? taking into account that there are 5 to 6 columns with data with extensive names.

Another question is how to automatically generate the table and if it does the "pagination" and organization by name, id etc.

Example of a table I made in html and php the goal was to have something similar in android:

    
asked by anonymous 03.07.2016 / 19:06

1 answer

0

Use a recyclerView and create a layout for the line and another for the header (this should be called when the position returns 0)

Here has an example paging.

Possible ways to organize:

  • Selecting a row displays the "x" and "?" options. on the toolbar.
  • Use icons for the status column
  • IDParage can become ID
  • You can think of a usage for Float Action Button
  • If the line is always a color you can use a textView that would have the line color with a number in this color.

.

    
04.07.2016 / 14:12