从最新版本的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" />
What is "tools:context" used for?
它怎么知道到那里所写的活动的确切路径呢?它有没有看 list 里面的应用程序包?
它仅限于扩展上下文的类还是仅限于活动?它是否可用于ListView项目等.?