Views is something that can be displayed.
Sometimes called as widgets (not the widget displayed on launcher screen) or components.
View can be subclassed or used alone.
Some view are named __view
Ex:-Imageview, Button, EditText,CheckBox.
Giving ID to view
we cab use “android:id” as attribute to mention id ex:- “android:id” =“@+id/TextView”. here +id which means to create new fresh reference to this id. Here TextView is the name of id which is going to use in other places to refer this one.
No comments:
Post a Comment