kHRYSTAL / CircleRecyclerView

the library is a loop RecyclerView(expression), can show some effects when display
714 stars 100 forks source link

auto scroll when open app wehn rtl app #18

Closed hossein-rezaeian closed 6 years ago

hossein-rezaeian commented 6 years ago

hi i am set android:supportsRtl="false" and tools:replace="android:supportsRtl" in file manifest And when the app opens The recyclerview automatically scrool be and goes to another item And the other does not work properly what should I do i need to android:supportsRtl="false" and tools:replace="android:supportsRtl" my project

kHRYSTAL commented 6 years ago

thanks reply, the recyclerView automatically scroll to another item is not cause by set android:supportsRtl="false", this key-value not effect this library, and it is cause by field mNeedCenterForce in CircleRecycleView.java, you can use

circleRecycleView.setNeedCenterForce(false);

when init

and use

circleRecycleView.setNeedCenterForce(true);
circleRecycleView.requestLayout();

when you need the the shortest distance of center item scroll to center