感谢原文作者的无私分享,原文地址:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/0309/2567.html
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
</RelativeLayout>
今天在布局的时侯发现自己不理解tools是什么功能,百度之后明白了,文章以转载,感谢原文作者。