I'm writing a new app, and in this project I'm using the minSdkVersion = 21
(lollipop), so my question is: should I use any appcompat library once I'm targeting a quite new API?
426. An Android support library that enables the use of the ActionBar and Material Design specific implementations such as Toolbar for older devices down to Android v2. 1.
Support Libraries provide classes and methods that closely resemble APIs in the Android Framework. Upon discovering this, you may wonder if you should use the framework version of the API or the support library equivalent.
The Android Extension Library, often known as AndroidX, is the new open-source project that is a significant upgrade to the original Android Support Library and can be used to develop, test, package version, and release libraries within Jetpack. The Android Jetpack libraries are part of the AndroidX namespace.
v7 Preference Support Library The preference package provides APIs to support adding preference objects, such as CheckBoxPreference and ListPreference , for users to modify UI settings. The v7 Preference library adds support for interfaces, such as Preference.
You should & you need to.
why:
check this out.
In Android appcompat-v7
, as with Theme.Material
, supports the notion of a custom theme defining colors, like colorPrimary and colorAccent. Native Theme.Material
widgets on Android 5.0+, and supported widgets in appcompat-v7
, will use those colors in accordance with the Material Design guidelines.
The support library injects the compatibility code automatically. The classes provided by the support library are only needed when writing a new custom view. In this case you have to extend the
AppCompat
views in order to get the new properties such as tint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With