¡@

Home 

2014/10/16 ¤W¤È 08:18:45

android Programming Glossary: maxcontentchars

Creating a table/grid with a frozen column and frozen headers

http://stackoverflow.com/questions/7586753/creating-a-table-grid-with-a-frozen-column-and-frozen-headers

1 TableRow frozenTableHeaderRow null TableRow contentTableHeaderRow null int maxFrozenChars 0 int maxContentChars new int content.get 0 .length 1 for int i 0 i content.size i TableRow frozenRow new TableRow this frozenRow.setLayoutParams.. rowCell.setTextSize TypedValue.COMPLEX_UNIT_DIP fontSize row.addView rowCell if content.get i j .length maxContentChars j 1 maxContentChars j 1 content.get i j .length if i 0 frozenTableHeaderRow frozenRow contentTableHeaderRow row frozenHeaderTable.addView.. TypedValue.COMPLEX_UNIT_DIP fontSize row.addView rowCell if content.get i j .length maxContentChars j 1 maxContentChars j 1 content.get i j .length if i 0 frozenTableHeaderRow frozenRow contentTableHeaderRow row frozenHeaderTable.addView..