Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Chak Hei Chan
2,376 PointsThe difference between generic view and TextView?
I am wondering the difference between generic view and textview.
Thanks in advance!
1 Answer

william parrish
13,774 PointsThat can be either a incredibly long, or incredibly short answer. Lets shoot for the middle.
a View is the basic building block of UI components, it has various methods and properties that are somewhat universal amongst all the view widgets ( TextView included). All of the other widgets Extend View, and inherit all of its properties and methods. However they also have some properties that make more sense for their more specific use and application.
The View sets up the commonality of features and function that are then passed on to all of the other components, and also provide us the flexibility to create our own ui components without having to start completely from scratch.
The other answer, is right here. http://developer.android.com/reference/android/view/View.html
http://developer.android.com/reference/android/widget/TextView.html
TextView is a subclass of View.