ina
ina

Reputation: 19534

Difference between View and Subview - Android

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

Upvotes: 5

Views: 2467

Answers (3)

KwahuNashoba
KwahuNashoba

Reputation: 244

Like Vinay said, there is no such a thing. But you have ViewGroup that contains other Views. For example, LinearLayout, RelativeLayout etc are derived from that class. If you wish, you can read more about it here: http://developer.android.com/reference/android/view/ViewGroup.html

Upvotes: 2

Rajendra
Rajendra

Reputation: 1698

View is the base class for widgets, which are used to create interactive UI components (buttons, text fields, etc.). and if we insert a view inside the another the its become Subview like a linear Layout containing a button view, here button is a subview

Upvotes: 2

Vinay W
Vinay W

Reputation: 10190

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

Upvotes: 2

Related Questions