It occurred to me while using AppCompat, that I had been using things like Button
instead of android.support.v7.widget.AppCompatButton
within my layout XML files. I did a test, via view.getClass().getSimpleName()
and confirmed that even though I declared it as a Button
in the XML, the class being loaded was in fact AppCompatButton
.
How does this work, under the hood?