Terminé

Android: A table with headings where headings don't scroll vertically and width match

I have a database with a table. I want to display it on the screen scrollable horizontally and vertically. I also want the column names at the top of the table, but I don't want the column names (column headers) to scroll. I want the names of the column to stay visible and vertically-stationary on the screen.

To do this, I am using 2 TableLayouts. The first one is just one row for the column header (names). The second one is for the details (data). The 2 TableLayouts combined are horizontally scrollable (since not all of the data will fit on the screen). The details table (data) is both horizontally and vertically scrollable. This gives appearance of a single table where the column headers do not scroll.

Here is the problem. The TableLayout will automatically size your tables according to its contents - the widths of each columns are determined by the maximum width of the data in the columns. This is a nice feature. However, since I use 2 TableLayouts to do this, the widths of the column names (column headers) does not match the data columns. Therefore, I am currently having to hardcode the size of the columns in both TableLayouts. I do not want to hard code the size of the columns.

**Deliverables:** Create an android program that takes the results from <[url removed, login to view]>, and displays the results where the column headings and column data are <strike>vertically</strike> horizontally scrollable, but only the column data is vertically scrollable. In this solution, the widths of the column headers must equal the widths of the column data and the size of each column is sized dynamically according to the maximum width of the data in the column, unless the column heading is larger than the column data. If the column heading is larger than the data in the column, the column should be sized to the width of the column heading (name).

Let me know if you have questions or need more information.

<[url removed, login to view]> - This returns the table back in JSON format.

## Deliverables

A little more information attached.

Compétences : Android, Ingénierie, Java, Mobile App Development, Gestion de Projet, Architecture Logicielle, Tests de Logiciels

en voir plus : scrollable table header android json data, scrollable column header android, where you do, single match, row 44, match problem, match management, i don t know, at&t android, android tablelayout, android screen size, contents of a will, table top, problem with name, java json, hardcode, android json, android a, database scroll, screen appearance, table heading, create table using, solution android, android display table, display table

Concernant l'employeur :
( 16 commentaires ) United States

Nº du projet : #3105493

Décerné à:

TopOfStack

See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 7 jours
(248 Commentaires)
7.9

5 freelance font une offre moyenne de $131 pour ce travail

bondsoft

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(37 Commentaires)
5.9
devrange

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(27 Commentaires)
5.6
mihikatech

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(2 Commentaires)
0.0
srchina

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0