Press on the image to return to the main documentation page.
Amir_RVViewPager
Written by AmirHosseinAghajari
List of types:
Amir_RVCarouselViewPager
Amir_RVCircleScaleViewPager
Amir_RVCircleViewPager
Amir_RVGalleryViewPager
Amir_RVRotateViewPager
Amir_RVScaleViewPager
Amir_RVCarouselViewPager
Amir_RecyclerView Plugin (LayoutManager)
Events:
onPageSelected (Position As Int)
onPageScrollStateChanged (State As Int)
Members:
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVCarouselViewPager
.
Builder
ItemSpace
As
Int
MaxVisibleItemCount
As
Int
MinScale
As
Float
MoveSpeed
As
Float
Orientation
As
Int
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
ReverseLayout
As
Boolean
SmoothScrollbarEnabled
As
Boolean
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVCarouselViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Members description:
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
used by CenterSnapHelper to center the current view
Return type: @return:the dy between center and current position
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVCarouselViewPager
.
Builder
ItemSpace
As
Int
MaxVisibleItemCount
As
Int
Set the max visible item count, DETERMINE_BY_MAX_AND_MIN means it haven't been set now
And it will use MaxRemoveOffset() and MinRemoveOffset() to handle the range
MinScale
As
Float
MoveSpeed
As
Float
Orientation
As
Int
Sets or get the orientation of the layout. ViewPagerLayoutManager
will do its best to keep scroll position.
orientation : HORIZONTAL or VERTICAL
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
Returns whether LayoutManager will recycle its children when it is detached from
RecyclerView.
ReverseLayout
As
Boolean
Used to reverse item traversal and layout order.
This behaves similar to the layout change for RTL views. When set to true, first item is
laid out at the end of the UI, second item is laid out before it etc.
For horizontal layouts, it depends on the layout direction.
When set to true, If android.support.v7.widget.RecyclerView is LTR, than it will
layout from RTL, if android.support.v7.widget.RecyclerView is RTL, it will layout
from LTR.
SmoothScrollbarEnabled
As
Boolean
When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed
based on the number of visible pixels in the visible items. This however assumes that all
list items have similar or equal widths or heights (depending on list orientation).
If you use a list in which items have different dimensions, the scrollbar will change
appearance as the user scrolls through the list. To avoid this issue, you need to disable
this property.
When smooth scrollbar is disabled, the position and size of the scrollbar thumb is based
solely on the number of items in the adapter and the position of the visible items inside
the adapter. This provides a stable scrollbar as the user navigates through a list of items
with varying widths / heights.
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVCarouselViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Amir_RVCircleScaleViewPager
Amir_RecyclerView Plugin (LayoutManager)
Events:
onPageSelected (Position As Int)
onPageScrollStateChanged (State As Int)
Members:
AngleInterval
As
Int
BOTTOM
As
Int
CENTER_ON_TOP
As
Int
CenterScale
As
Float
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
FlipRotate
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
Gravity
As
Int
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleScaleViewPager
.
Builder
LEFT
As
Int
LEFT_ON_TOP
As
Int
MaxRemoveAngle
As
Float
MaxVisibleItemCount
As
Int
MinRemoveAngle
As
Float
MoveSpeed
As
Float
Orientation
As
Int
PageSnapHelper
Radius
As
Int
RecycleChildrenOnDetach
As
Boolean
ReverseLayout
As
Boolean
RIGHT
As
Int
RIGHT_ON_TOP
As
Int
SmoothScrollbarEnabled
As
Boolean
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleScaleViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
TOP
As
Int
VERTICAL
As
Int
ZAlignment
As
Int
Members description:
AngleInterval
As
Int
BOTTOM
As
Int
CENTER_ON_TOP
As
Int
CenterScale
As
Float
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
FlipRotate
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
used by CenterSnapHelper to center the current view
Return type: @return:the dy between center and current position
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
Gravity
As
Int
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleScaleViewPager
.
Builder
LEFT
As
Int
LEFT_ON_TOP
As
Int
MaxRemoveAngle
As
Float
MaxVisibleItemCount
As
Int
Set the max visible item count, DETERMINE_BY_MAX_AND_MIN means it haven't been set now
And it will use MaxRemoveOffset() and MinRemoveOffset() to handle the range
MinRemoveAngle
As
Float
MoveSpeed
As
Float
Orientation
As
Int
Sets or get the orientation of the layout. ViewPagerLayoutManager
will do its best to keep scroll position.
orientation : HORIZONTAL or VERTICAL
PageSnapHelper
Radius
As
Int
RecycleChildrenOnDetach
As
Boolean
Returns whether LayoutManager will recycle its children when it is detached from
RecyclerView.
ReverseLayout
As
Boolean
Used to reverse item traversal and layout order.
This behaves similar to the layout change for RTL views. When set to true, first item is
laid out at the end of the UI, second item is laid out before it etc.
For horizontal layouts, it depends on the layout direction.
When set to true, If android.support.v7.widget.RecyclerView is LTR, than it will
layout from RTL, if android.support.v7.widget.RecyclerView is RTL, it will layout
from LTR.
RIGHT
As
Int
RIGHT_ON_TOP
As
Int
SmoothScrollbarEnabled
As
Boolean
When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed
based on the number of visible pixels in the visible items. This however assumes that all
list items have similar or equal widths or heights (depending on list orientation).
If you use a list in which items have different dimensions, the scrollbar will change
appearance as the user scrolls through the list. To avoid this issue, you need to disable
this property.
When smooth scrollbar is disabled, the position and size of the scrollbar thumb is based
solely on the number of items in the adapter and the position of the visible items inside
the adapter. This provides a stable scrollbar as the user navigates through a list of items
with varying widths / heights.
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleScaleViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
TOP
As
Int
VERTICAL
As
Int
ZAlignment
As
Int
Amir_RVCircleViewPager
Amir_RecyclerView Plugin (LayoutManager)
Events:
onPageSelected (Position As Int)
onPageScrollStateChanged (State As Int)
Members:
AngleInterval
As
Int
BOTTOM
As
Int
CENTER_ON_TOP
As
Int
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
FlipRotate
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
Gravity
As
Int
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleViewPager
.
Builder
LEFT
As
Int
LEFT_ON_TOP
As
Int
MaxRemoveAngle
As
Float
MaxVisibleItemCount
As
Int
MinRemoveAngle
As
Float
MoveSpeed
As
Float
Orientation
As
Int
PageSnapHelper
Radius
As
Int
RecycleChildrenOnDetach
As
Boolean
ReverseLayout
As
Boolean
RIGHT
As
Int
RIGHT_ON_TOP
As
Int
SmoothScrollbarEnabled
As
Boolean
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
TOP
As
Int
VERTICAL
As
Int
ZAlignment
As
Int
Members description:
AngleInterval
As
Int
BOTTOM
As
Int
CENTER_ON_TOP
As
Int
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
FlipRotate
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
used by CenterSnapHelper to center the current view
Return type: @return:the dy between center and current position
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
Gravity
As
Int
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleViewPager
.
Builder
LEFT
As
Int
LEFT_ON_TOP
As
Int
MaxRemoveAngle
As
Float
MaxVisibleItemCount
As
Int
Set the max visible item count, DETERMINE_BY_MAX_AND_MIN means it haven't been set now
And it will use MaxRemoveOffset() and MinRemoveOffset() to handle the range
MinRemoveAngle
As
Float
MoveSpeed
As
Float
Orientation
As
Int
Sets or get the orientation of the layout. ViewPagerLayoutManager
will do its best to keep scroll position.
orientation : HORIZONTAL or VERTICAL
PageSnapHelper
Radius
As
Int
RecycleChildrenOnDetach
As
Boolean
Returns whether LayoutManager will recycle its children when it is detached from
RecyclerView.
ReverseLayout
As
Boolean
Used to reverse item traversal and layout order.
This behaves similar to the layout change for RTL views. When set to true, first item is
laid out at the end of the UI, second item is laid out before it etc.
For horizontal layouts, it depends on the layout direction.
When set to true, If android.support.v7.widget.RecyclerView is LTR, than it will
layout from RTL, if android.support.v7.widget.RecyclerView is RTL, it will layout
from LTR.
RIGHT
As
Int
RIGHT_ON_TOP
As
Int
SmoothScrollbarEnabled
As
Boolean
When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed
based on the number of visible pixels in the visible items. This however assumes that all
list items have similar or equal widths or heights (depending on list orientation).
If you use a list in which items have different dimensions, the scrollbar will change
appearance as the user scrolls through the list. To avoid this issue, you need to disable
this property.
When smooth scrollbar is disabled, the position and size of the scrollbar thumb is based
solely on the number of items in the adapter and the position of the visible items inside
the adapter. This provides a stable scrollbar as the user navigates through a list of items
with varying widths / heights.
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVCircleViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
TOP
As
Int
VERTICAL
As
Int
ZAlignment
As
Int
Amir_RVGalleryViewPager
Amir_RecyclerView Plugin (LayoutManager)
Events:
onPageSelected (Position As Int)
onPageScrollStateChanged (State As Int)
Members:
Angle
As
Float
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
FlipRotate
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVGalleryViewPager
.
Builder
ItemSpace
As
Int
MaxAlpha
As
Float
MaxVisibleItemCount
As
Int
MinAlpha
As
Float
MoveSpeed
As
Float
Orientation
As
Int
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
ReverseLayout
As
Boolean
RotateFromEdge
As
Boolean
SmoothScrollbarEnabled
As
Boolean
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVGalleryViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Members description:
Angle
As
Float
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
FlipRotate
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
used by CenterSnapHelper to center the current view
Return type: @return:the dy between center and current position
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVGalleryViewPager
.
Builder
ItemSpace
As
Int
MaxAlpha
As
Float
MaxVisibleItemCount
As
Int
Set the max visible item count, DETERMINE_BY_MAX_AND_MIN means it haven't been set now
And it will use MaxRemoveOffset() and MinRemoveOffset() to handle the range
MinAlpha
As
Float
MoveSpeed
As
Float
Orientation
As
Int
Sets or get the orientation of the layout. ViewPagerLayoutManager
will do its best to keep scroll position.
orientation : HORIZONTAL or VERTICAL
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
Returns whether LayoutManager will recycle its children when it is detached from
RecyclerView.
ReverseLayout
As
Boolean
Used to reverse item traversal and layout order.
This behaves similar to the layout change for RTL views. When set to true, first item is
laid out at the end of the UI, second item is laid out before it etc.
For horizontal layouts, it depends on the layout direction.
When set to true, If android.support.v7.widget.RecyclerView is LTR, than it will
layout from RTL, if android.support.v7.widget.RecyclerView is RTL, it will layout
from LTR.
RotateFromEdge
As
Boolean
SmoothScrollbarEnabled
As
Boolean
When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed
based on the number of visible pixels in the visible items. This however assumes that all
list items have similar or equal widths or heights (depending on list orientation).
If you use a list in which items have different dimensions, the scrollbar will change
appearance as the user scrolls through the list. To avoid this issue, you need to disable
this property.
When smooth scrollbar is disabled, the position and size of the scrollbar thumb is based
solely on the number of items in the adapter and the position of the visible items inside
the adapter. This provides a stable scrollbar as the user navigates through a list of items
with varying widths / heights.
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVGalleryViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Amir_RVRotateViewPager
Amir_RecyclerView Plugin (LayoutManager)
Events:
onPageSelected (Position As Int)
onPageScrollStateChanged (State As Int)
Members:
Angle
As
Float
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVRotateViewPager
.
Builder
ItemSpace
As
Int
MaxVisibleItemCount
As
Int
MoveSpeed
As
Float
Orientation
As
Int
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
ReverseLayout
As
Boolean
ReverseRotate
As
Boolean
SmoothScrollbarEnabled
As
Boolean
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVRotateViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Members description:
Angle
As
Float
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
used by CenterSnapHelper to center the current view
Return type: @return:the dy between center and current position
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVRotateViewPager
.
Builder
ItemSpace
As
Int
MaxVisibleItemCount
As
Int
Set the max visible item count, DETERMINE_BY_MAX_AND_MIN means it haven't been set now
And it will use MaxRemoveOffset() and MinRemoveOffset() to handle the range
MoveSpeed
As
Float
Orientation
As
Int
Sets or get the orientation of the layout. ViewPagerLayoutManager
will do its best to keep scroll position.
orientation : HORIZONTAL or VERTICAL
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
Returns whether LayoutManager will recycle its children when it is detached from
RecyclerView.
ReverseLayout
As
Boolean
Used to reverse item traversal and layout order.
This behaves similar to the layout change for RTL views. When set to true, first item is
laid out at the end of the UI, second item is laid out before it etc.
For horizontal layouts, it depends on the layout direction.
When set to true, If android.support.v7.widget.RecyclerView is LTR, than it will
layout from RTL, if android.support.v7.widget.RecyclerView is RTL, it will layout
from LTR.
ReverseRotate
As
Boolean
SmoothScrollbarEnabled
As
Boolean
When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed
based on the number of visible pixels in the visible items. This however assumes that all
list items have similar or equal widths or heights (depending on list orientation).
If you use a list in which items have different dimensions, the scrollbar will change
appearance as the user scrolls through the list. To avoid this issue, you need to disable
this property.
When smooth scrollbar is disabled, the position and size of the scrollbar thumb is based
solely on the number of items in the adapter and the position of the visible items inside
the adapter. This provides a stable scrollbar as the user navigates through a list of items
with varying widths / heights.
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVRotateViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Amir_RVScaleViewPager
Amir_RecyclerView Plugin (LayoutManager)
Events:
onPageSelected (Position As Int)
onPageScrollStateChanged (State As Int)
Members:
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVScaleViewPager
.
Builder
ItemSpace
As
Int
MaxAlpha
As
Float
MaxVisibleItemCount
As
Int
MinAlpha
As
Float
MinScale
As
Float
MoveSpeed
As
Float
Orientation
As
Int
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
ReverseLayout
As
Boolean
SmoothScrollbarEnabled
As
Boolean
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVScaleViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Members description:
CenterSnapHelper
CurrentPosition
As
Int
[read
only]
CurrentPositionOffset
As
Int
[read
only]
DETERMINE_BY_MAX_AND_MIN
As
Int
DistanceToBottom
As
Int
EnableBringCenterToFront
As
Boolean
GetLayoutPositionOfView
(
v
As
android
.
view
.
View
)
As
Int
GetOffsetToCenter
As
Int
used by CenterSnapHelper to center the current view
Return type: @return:the dy between center and current position
GetOffsetToPosition
(
position
As
Int
)
As
Int
GetViewByPosition
(
position
As
Int
)
As
android
.
view
.
View
HORIZONTAL
As
Int
Infinite
As
Boolean
Initializer
(
EventName
As
String
,
Recycler
As
android
.
support
.
v7
.
widget
.
RecyclerView
)
As
com
.
aghajari
.
rvplugins
.
Amir_RVScaleViewPager
.
Builder
ItemSpace
As
Int
MaxAlpha
As
Float
MaxVisibleItemCount
As
Int
Set the max visible item count, DETERMINE_BY_MAX_AND_MIN means it haven't been set now
And it will use MaxRemoveOffset() and MinRemoveOffset() to handle the range
MinAlpha
As
Float
MinScale
As
Float
MoveSpeed
As
Float
Orientation
As
Int
Sets or get the orientation of the layout. ViewPagerLayoutManager
will do its best to keep scroll position.
orientation : HORIZONTAL or VERTICAL
PageSnapHelper
RecycleChildrenOnDetach
As
Boolean
Returns whether LayoutManager will recycle its children when it is detached from
RecyclerView.
ReverseLayout
As
Boolean
Used to reverse item traversal and layout order.
This behaves similar to the layout change for RTL views. When set to true, first item is
laid out at the end of the UI, second item is laid out before it etc.
For horizontal layouts, it depends on the layout direction.
When set to true, If android.support.v7.widget.RecyclerView is LTR, than it will
layout from RTL, if android.support.v7.widget.RecyclerView is RTL, it will layout
from LTR.
SmoothScrollbarEnabled
As
Boolean
When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed
based on the number of visible pixels in the visible items. This however assumes that all
list items have similar or equal widths or heights (depending on list orientation).
If you use a list in which items have different dimensions, the scrollbar will change
appearance as the user scrolls through the list. To avoid this issue, you need to disable
this property.
When smooth scrollbar is disabled, the position and size of the scrollbar thumb is based
solely on the number of items in the adapter and the position of the visible items inside
the adapter. This provides a stable scrollbar as the user navigates through a list of items
with varying widths / heights.
SmoothScrollInterpolator
As
com
.
aghajari
.
rvplugins
.
Amir_RVScaleViewPager
.
Interpolators
SmoothScrollToPosition
(
targetPosition
As
Int
)
VERTICAL
As
Int
Top