Previous article Android LinearLayout Example has introduced how to use LinearLayout to layout and align components in android app. This article will show you an example about how to implement on touch listener and on click listener to the LinearLayout object.
LinearLayout is a very important layout in android applications. This layout will align the components it contains in the linear direction. The direction can be vertical or horizontal which is specified by LinearLayout property android: orientation.