Amir_RVCardSlider
-
Functions:
- ActiveCardLeft (left As Int) As com.aghajari.rvplugins.Amir_RVCardSlider.Builder
Active card offset from start of RecyclerView. Default value is 50dp.
- Build
- CardsGap (gap As Float) As com.aghajari.rvplugins.Amir_RVCardSlider.Builder
Distance between cards. Default value is 12dp.
- CardWidth (width As Int) As com.aghajari.rvplugins.Amir_RVCardSlider.Builder
Card width. Default value is 148dp.
- ShowLeftCardCount (count As Int) As com.aghajari.rvplugins.Amir_RVCardSlider.Builder
-
Extended {@link LinearSnapHelper} that works only with {@link CardSliderLayoutManager}.
Functions:
- attachToRecyclerView (recyclerView As android.support.v7.widget.RecyclerView)
Attaches the {@link CardSnapHelper} to the provided RecyclerView, by calling
{@link RecyclerView#setOnFlingListener(RecyclerView.OnFlingListener)}.
You can call this method with {@code null} to detach it from the current RecyclerView.
recyclerView: The RecyclerView instance to which you want to add this helper or
{@code null} if you want to remove SnapHelper from the current
RecyclerView.
- calculateDistanceToFinalSnap (layoutManager As android.support.v7.widget.RecyclerView.LayoutManager, targetView As android.view.View) As Int()
- calculateScrollDistance (arg0 As Int, arg1 As Int) As Int()
- createSnapScroller (layoutManager As android.support.v7.widget.RecyclerView.LayoutManager) As android.support.v7.widget.LinearSmoothScroller
- findSnapView (layoutManager As android.support.v7.widget.RecyclerView.LayoutManager) As android.view.View
- findTargetSnapPosition (layoutManager As android.support.v7.widget.RecyclerView.LayoutManager, velocityX As Int, velocityY As Int) As Int
- onFling (arg0 As Int, arg1 As Int) As Boolean
Amir_RVCardSlider
Events:
- onUpdateView (ItemView As Object, ItemPosition As Int, Position As Float)
Functions:
- FindRatio (ItemView As android.view.View, Position As Float) As Float
Return Position Ratio or -100 for Unknow
- Initializer (Recycler As android.support.v7.widget.RecyclerView, ba As BA, EventName As String) As com.aghajari.rvplugins.Amir_RVCardSlider.Builder
- ScrollToPosition (Position As Int, Smooth As Boolean)
Properties:
- AbsTranslationX As Boolean
- ActiveCardCenter As Int [read only]
- ActiveCardLeft As Int [read only]
- ActiveCardPosition As Int [read only]
- ActiveCardRight As Int [read only]
- AutoSetTranslationX As Boolean
- CardsGap As Float [read only]
- CardSnapHelper As Boolean
- CardWidth As Int [read only]
- MaxAlpha As Float
- MinAlpha As Float
- PreView As android.view.View [read only]
- ScaleCenter As Float
- ScaleCenterToLeft As Float
- ScaleCenterToRight As Float
- ScaleLeft As Float
- ScaleRight As Float
- TopView As android.view.View [read only]
- ZCenter1 As Int
- ZCenter2 As Int
- ZRight As Int
Author: AmirHosseinAghajari