从最近的ADT新版本开始,我注意到布局XML文件中有了这个新属性,例如:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity" />
"tools:context" 用于什么目的?
它是如何知道那里写的确切活动路径的?它是否查看应用程序包内的清单文件?
它是否仅限于继承Context的类或仅限于活动?它是否可用于ListView项等?