Unexpected namespace prefix "xmlns" found for tag RelativeLayout
2011年7月份开发的android应用程序,如今重新搭建eclipseandroid开发环境温故一下,发现layout的xml管理器报了许多警告和一个错误:
1 [I18N] Hardcoded string "Button", should use @string resource
2 This RelativeLayout layout or its LinearLayout parent ispossibly useless
3
Avoid using "px" as units; use "dp"instead
4
Should use "sp" instead of "dp" for textsizes
5 [Accessibility] Missing contentDescription attribute onimage
6 [ERROR]Unexpected namespace prefix "xmlns" found for tagRelativeLayout
点击右上角的红色按钮,选择fix或suppress issue,即可解决问题。