开发者

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

开发者 https://www.devze.com 2023-02-25 05:08 出处:网络
Is it meaning that you can build a table row with an empty column ? I want to do a TableLayout like this :

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

精彩评论

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