2
這是否意味着您可以創建一個空列的表格行?TableRow.addView(View child,int index)中的「index」代表什麼?
我想做這樣一個TableLayout:
+--------------+---------------------+
+ *Nothing* + LinearLayout +
+------------------------------------+
+ LinearLayout + *Nothing* +
+--------------+---------------------+
是否有可能與指數的財產?
TableRow topTableRow = new TableRow(context);
topTableRow.addView(xAxisScrollView, 1);
addView(topTableRow);
TableRow bottomTableRow = new TableRow(context);
bottomTableRow.addView(yAxisScrollView, 0);
addView(bottomTableRow);
我試過這個,但它拋出IndexOutOfBoundException ... :( – Codii 2011-04-15 09:00:12
好吧,我明白了,但這個答案應該可以幫助你:http://stackoverflow.com/q/3345189/329637 – 2011-04-15 09:05:19
謝謝,我會嘗試使用GridView – Codii 2011-04-15 09:13:25