View has a set of attributes ,
such as its
Some of these
attributes are used
to customize the appearance of a view ,
this is called
styling the view
applying a style to a given view .
TableLayout is first of all a
LinearLayout with a vertical orientation , so the properties of
LinearLayout , such as weight , apply to a
layout_weight is just how the remaining free space is divided .
is simply a
grid of views , it is a
, so the methods
and fields defined for
apply to a
GridView . Another subclass of
This tutorial will show how to create a
GridView , the final product is shown below .
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.