Android Warning "this Tablerow View Is Useless (no Children, No Background, No Id)"
A warning occours in eclipse when I tried to make a android table layout in xml this warning comes at table row of the layout part: This TableRow view is useless (no children, no
Solution 1:
That situation appears when you have only one "RowTable" section.
Try to add second empty section, eg.
<TableRow android:id="@+id/tableRow2">
In my case it works.
Solution 2:
If you have single table layout then make Table layout parent remove any other parent tag.
You have similar problem try this Solution
Solution 3:
If you know that you use this TableRow
(e.g. you add children to it later in the code) just ignore the warning.
Upd: you can't use this TableRow
in code without id assigned to it. Why do you need the TableRow
?
Post a Comment for "Android Warning "this Tablerow View Is Useless (no Children, No Background, No Id)""