What is the difference between an AppCompat
view component and a standard/default view component?
For example, the difference between an AppCompatEditText
, and an EditText
, or between an AppCompatButton
and a Button
.
Looking at the developer docs for android.support.v7.widget
, the AppCompat
view components are described as "tint aware", but is this the only difference, and what exactly does this do?
When you are using a
Button
or anEditText
you are actually usingAppCompatButton
andAppCompatEditText
. From the official documentation of theAppCompatEditText
.AppCompat View Component supports compatible features on older version of the platform.
Although most of the AppCompatView only difference is it allows dynamic tint and background tint. Tint aware is not the only difference, each AppCompatView has its own differences, for example.
Allows textAllCaps style attribute up to Gingerbread.
Setting the popup theme using popupTheme.
You can dig down each view difference in Android docs.
However, as Sid / Docs says, you don't have to specify this on your layouts since it will automatically converted to AppCompat views. But, if you want to create custom view, you should use AppCompat Views, or else this bug will happens.