感谢原文作者的无私分享,原文地址: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是什么功能,百度之后明白了,文章以转载,感谢原文作者。
本文介绍了一个简单的RelativeLayout XML布局示例,并讨论了其中的'android'和'tools'名称空间的作用。作者通过查找资料解释了'tools'名称空间的用途。
1905

被折叠的 条评论
为什么被折叠?



