Skip to content
Advertisement

Difference between CustomTextView as Parent and Textview as Parent

i created CustomTextview as below

JavaScript

.

JavaScript

what is the difference between

This

JavaScript

and this

JavaScript

When i put this TextView textView = findViewbyId(R.id.view); IDE runs without throwing error. Why? Thanks!

Advertisement

Answer

A real life comparison:

When you learn to drive a manual transmission car, you can drive almost any manual transmission car. Imagine how bad it would be if you had to learn to drive every different model of car you encounter.

Source (+)

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement