Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between View and Subview - Android

What is the difference between a view and a subview in Android?

like image 924
ina Avatar asked Sep 11 '12 06:09

ina


People also ask

What is difference between View and ViewGroup in android?

View is a basic building block of UI (User Interface) in android. A view is a small rectangular box that responds to user inputs. Eg: EditText, Button, CheckBox, etc. ViewGroup is an invisible container of other views (child views) and other ViewGroup.

What is the view in android?

What is Android View? A View is a simple building block of a user interface. It is a small rectangular box that can be TextView, EditText, or even a button. It occupies the area on the screen in a rectangular area and is responsible for drawing and event handling.

What is the main purpose of a ViewGroup?

What is the main purpose of a ViewGroup? It groups together the most common views that developers use in Android apps. It serves as a container for View objects, and is responsible for arranging the View objects within it. It is required to make a view interactive as a way to group TextViews on a screen.

Is ListView a ViewGroup?

ListView is a ViewGroup that displays a list of vertically scrollable items.


1 Answers

there is no such thing called a 'subview', its just used to refer to a view inside another view.

like image 65
Vinay W Avatar answered Sep 23 '22 02:09

Vinay W