Recommend using the support library even though it is no longer needed

Our app is now using Android API 19, so we no longer need lib support, but only for the ViewPager, we need an alternative. But the question I myself have been doing is what is better to use eg. DialogFragment from lib support and not from the framework itself? I was thinking about the possible advantage of doing this, for example if the code in the support library has bug fixes, so if I use it, I will also have fixes on older versions of Android, if not, then I might get some bugs / bugs, etc. etc. on older versions, do you have some thoughts on this?

+3


source to share


2 answers


IMO it's wise to keep using the support library versions anyway regardless of your minSdk version - the support library is updated regularly and probably has different bug fixes compared to the versions of the platforms supplied.

As you say, this means you can rely on one implementation.



The only upside I can see to ditch the support libraries and use the platform implementation is the smaller APK / lower method count, which may or may not work for you.

+3


source


Yes. This is one of the benefits of using the Library Support API through the SDK: you can get bug fixes in the Support Library, which is fixed in all supported versions of Android.



And we can choose the version of the support library. If the latest version has compatibility issues, we can use the older version of the Support Library as a workaround, even targeting the latest SDK.

+1


source







All Articles