Android views

Archived

This page has been archived and will receive no further updates.

get a view by resource ID

context.findViewById(R.id.my_view);

or:

myParentView.findViewById(R.id.my_child_view);

add a resource ID to a view in XML

android:id="@+id/my_view"

listview

create a webview

http://developer.android.com/resources/tutorials/views/hello-webview.html