android - what's “tools:context” in layout files?

Themobjob

New Member
starting of some version of ADT , i've noticed this new attribute on the layout xml files , for example:\[code\]<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" ></LinearLayout>\[/code\]what is the "tools:context" used for?is there any place to read about this feature? i've searched google and didn't find anything. how does it even know of the exact path to the activity that is written there? does it look at the package of the app, inside the manifest?do i have to put there only paths to classes that extend Context ? or maybe only activities? if so , what about using it for listView items etc...?
 
Back
Top