A
View has a set of attributes ,
such as its android:layout_width ,
or its android:layout_height .
Some of these
attributes are used
to customize the appearance of a view ,
this is called
styling the view
, or
applying a style to a given view .

A TableLayout is first of all a LinearLayout with a vertical orientation , so the properties of LinearLayout , such as weight , apply to a TableLayout . layout_weight is just how the remaining free space is divided .

A
GridView
is simply a
grid of views , it is a
subclass of
AbsListView
, so the methods
and fields defined for AbsListView ,
apply to a GridView . Another subclass of
AbsListView is
Listview
.
This tutorial will show how to create a GridView , the final product is shown below .

A ListView is a list of views , this tutorial will show how to implement a ListView in android . The final product is shown below .

The addView method is used to add a View programmatically to a ViewGroup .
A ViewGroup can be for example a LinearLayout or a RelativeLayout … A ViewGroup is itself a View .
In this tutorial we will explain what is the addView method.
