开发者

What does "index" stands for in TableRow.addView (View child, int index)?

Is it meaning that you can build a table row with an empty column ?

I want to do a TableLayout like this :

+--------------+---------------------+
+  *Nothing*   +     LinearLayout    +
+------------------------------------+
+ LinearLayout +      *Nothing*      +
+--------------+-----------开发者_Python百科----------+

Is it possible with index property ?

TableRow topTableRow = new TableRow(context);
topTableRow.addView(xAxisScrollView, 1);
addView(topTableRow);

TableRow bottomTableRow = new TableRow(context);
bottomTableRow.addView(yAxisScrollView, 0);
addView(bottomTableRow);


As you can read in the documentation, it should be possible. But I would just try it. It's done in 2 minutes ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜