Reputation: 19534
What is the difference between a view and a subview in Android?
Upvotes: 5
Views: 2467
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
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
Reputation: 10190
there is no such thing called a 'subview', its just used to refer to a view inside another view.
Upvotes: 2