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 .

Android styles and themes a tutorial  , featured image 436 by 93

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 .

TableLayout in android a tutorial , featured image 280 by 280

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 .

GridView in android a tutorial , featured image 280 by 280

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

ListView in android a tutorial , featured image 280 by 280

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.

What is the addView method in android ? featured image 228 by 228
« Previous Next »