Reset AppCompat for API 21

So, I am creating an application that is Lollipop 5.0 API 21, and with zero interest in supporting older devices. Do I still need the appcompat library when using Material Design, such as user interface and layout elements (aka nav bar sidebar, ink, etc.)? When you delete it, I often encounter crashes when trying to move away from the AppCompat application. Changing the types of operations from AppCompat to Normal, I get problems with dependencies on layout types, such as the coordinator layout, which are not there.

I'm still new to android, and this is very confusing since my theme is currently in limbo somewhere between the appcompat theme and the material design when I tried to change it from one of the templates.

I read that this is an Android studio problem because it always uses appcompat regardless of your dependencies between sets and minimum API levels. Forces you to manually override each hidden hidden call to appcompat.

When trying to reset AppCompat, what changes do I need to make this happen? Manifest, actions, menu, layout, styles? This seems to apply to all of these things. If you go exclusively without Appomppat, do you still need v21 folders or will it capture by default?

+4
source share
1 answer

appcompat Material Design, , ( , ..)?

, NavigationView, appcompat-v7 AppCompatActivity. 2016 Google , Theme.Material. , Android " " appcompat-v7.

, Android, appcompat API. appcompat.

, Android Studio appcompat-v7, , .

AppCompat, , ? , , , , ?

. :

  • AppCompatActivity

  • app: android:

  • , Theme.AppCompat

Appomppat, v21 ?

-v21 appcompat-v7. API 21+.

+4

Source: https://habr.com/ru/post/1017002/


All Articles