Reputation: 2416
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 background, no id)
<TableRow android:layout_width="fill_parent" android:layout_height="wrap_content">
</TableRow>
Plese tell me how to overcome this warning.Thanks in advance.
Upvotes: 2
Views: 8607
Reputation: 61
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.
Upvotes: 6
Reputation: 20346
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
?
Upvotes: 0