Eclipse complains about uselessness of elements in layout xml

假如想象 提交于 2019-12-02 11:05:49

I think it's because of using table row element as parent of in table layout.

you can just remove elelment from xml because has add the row to Table layout.

Using as a parent of is Useless here so eclipse show you a warning of an useless parent for

I would think that the table is useless as a simple LinearLayout should do the job, too. Also read carefully: possibly useless doesn't mean it is useless.

I think it occurs when you use only one row in a table, the moment I use two or more rows the message disappears. (Why put a only one row in a table, the table itself then is already one row must be the thought behind this).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!