Do you need to use the AppCompat and Support Design libraries when the minimum API is 21?

1

Recently I upgraded an application that I'm developing to use a minimum API at 21 (Lollipop), before it was at 19 (KitKat).

In the case of KitKat I needed to use AppCompat and Support Design to enjoy the DrawerLayout, CoordinatorLayout, FloatingActionButton, etc., but in Lollipop some of these controls are natively supported.

The question is: Do I need to continue referencing AppCompat and Support Design? And if so, which parts of the libs?

I think I'll probably have to adapt the code for those changes.

    
asked by anonymous 13.09.2017 / 16:55

2 answers

1

No , if you only use the features in (up to) Loolipop.

Yes , if you want to use new features and new methods available in versions after Loolipop.

    
13.09.2017 / 19:27
1

If your API is now at 21, you will no longer need to use these support libraries. Really.

They are meant to provide support for devices with% 21 APIs, that is, devices with APIs between 21 and 9, as this is the minimum the library can support.

    
13.09.2017 / 17:53