Difference between an AppCompat view and a normal Android view

前端 未结 2 1613
青春惊慌失措
青春惊慌失措 2021-02-05 03:02

What is the difference between an AppCompat view component and a standard/default view component?

For example, the difference between an AppCompatEdit

2条回答
  •  礼貌的吻别
    2021-02-05 03:38

    When you are using a Button or an EditText you are actually using AppCompatButton and AppCompatEditText. From the official documentation of the AppCompatEditText.

    A tint aware EditText. This will automatically be used when you use EditText in your layouts. You should only need to manually use this class when writing custom views

提交回复
热议问题