Android views are nothing but the controls or we can say interacting components of the screen. As an example, we can say that textbox, button, checkbox, radio button etc are the various example of android views. In eclipse IDE, views are available as Android Widgets.
Following are some views in Android Application available using eclips IDE.
Reference to Views in Android application for Java Code
To get the reference to any view in java code, following code is used.
View viewname = (View) findViewById (R.id.xmlid);
Where viewname is just like any variable name.
xmlid is id which we used in xml layout file.
TextView myText = (TextView)findViewById(R.id.text1);
This is one kind of broadcast receiver available in android.Toast class is used to create message box in android.Toasts are Dialog boxes that remain visible for only a few seconds. Toasts don’t steal focus and are non-modal, so they don’t interrupt the active application. Toasts are perfect for informing your users of events without forcing them to open an Activity or read a Notification. They provide an ideal mechanism for alerting users to events occurring in background Services without interrupting foreground applications.
Toast toast = Toast.makeText(context, msg, duration);
Context must be current application context.
Msg must be string variable which you want to show.
Duration must be the integer which indicate the time in millisecond.
Eg.Show message dialog WELCOME on android screen.
Full android web application Tutorial:-