zhanghai / AndroidFastScroll

Fast scroll for Android RecyclerView and more
https://play.google.com/store/apps/details?id=me.zhanghai.android.fastscroll.sample
Apache License 2.0
698 stars 64 forks source link

minSdkVersion 19 issue compilation failed #29

Closed omkar-tenkale closed 4 years ago

omkar-tenkale commented 4 years ago

Expected Behavior

It should work normally

Actual Behavior

Compile time error

Steps to Reproduce the Problem

1.Include this lib in project with minSdk version 19

Specifications

Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [me.zhanghai.android.fastscroll:library:1.1.4]

zhanghai commented 4 years ago

This library is min-21 and cannot be used in a min-19 app. If you really want to use it for min-19, you will need to fork this library and fix it on 19.

AndroidDeveloperLB commented 3 years ago

@zhanghai Why API 21 ? RecyclerView supports before...

zhanghai commented 3 years ago

Because I don't want to support pre-21. If you want the support, you can always do it yourself.

AndroidDeveloperLB commented 3 years ago

@zhanghai I mean that RecyclerView supports before. It should have been planned to handle it from what RecyclerView supports. As for doing it myself, I saw too many things that this library uses on too new Android versions. Are you sure it's possible?

zhanghai commented 3 years ago

I know RecyclerView supports API levels below 21, but I myself don't have the interest to support pre-21.

I'm using a number of 21+ things in this library and that's the reason I don't want to support pre-21. You may try to find replacment for those 21+ APIs if you want to do it yourself - I don't have an idea about whether that's possible, because I never considered supporting pre-21.

AndroidDeveloperLB commented 3 years ago

@zhanghai OK sorry and thank you