This TableRow layout or its TableLayout parent is possibly useless

android, android-layout

Solution

Add

tools:ignore="UselessParent"

to your table row to avoid warning or in the tag where you get the warning.

Problem

I have a warning in an xml file: This `TableRow` layout or its `TableLayout` parent is possibly useless. ``` <TableRow android:id="@+id/tableRow2"> ... </TableRow> ``` I put the attribute `android:id` in there, but the warning didn't disappear. Any ideas as to what may be causing the warning?

Original source