Android Programming Press on the image to return to the main documentation page.

Amir_RecyclerView

Written by AmirHosseinAghajari

List of types:

Amir_RecyclerView
Amir_RecyclerViewPager
Amir_RVAdapter
Amir_RVLayoutManager
Amir_RVMultiAdapter
Amir_RVSmoothScroller
Amir_RVUtils

Amir_RecyclerView


Events:

onScrollStateChanged (NewState As int)
onScrolled (Dx As int,Dy As int)
onScrolledToEnd
onScrolledToStart
onChildDetachedFromWindow (Item As Object)
onChildAttachedToWindow (Item As Object)
GetItemOffsets (OutRect As Rect,Item As Object,Position As Int)
onUpdateViews (Item As Object,Position As Int)

Members:


  About As String [read only]

  Adapter As android.support.v7.widget.RecyclerView.Adapter

  Adapter2 As com.aghajari.rv.AdapterData [read only]

  Background As android.graphics.drawable.Drawable

  Baseline As Int [read only]

  BringToFront

  CanScrollHorizontally As Boolean [read only]

  CanScrollVertically As Boolean [read only]

  CenterItemPosition As Int [read only]

  CenterItemView As android.view.View [read only]

  Clickable As Boolean

  ClipToPadding As Boolean

  Color As Int [write only]

  ComputeScrollExtent (Horizontal As Boolean) As Int

  ComputeScrollOffset (Horizontal As Boolean) As Int

  ComputeScrollRange (Horizontal As Boolean) As Int

  DefaultAdapter As Amir_RVAdapter

  DefaultItemAnimator

  DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)

  DividerHorizontal As com.aghajari.rv.utils.DividerH

  DividerVertical As com.aghajari.rv.utils.DividerV

  Enabled As Boolean

  Fling (velocityX As Int, velocityY As Int) As Boolean

  FlingListener (StandardFlingIfMissingSub As Boolean)

  FlingVelocityMax As Int [read only]

  FlingVelocityMin As Int [read only]

  GetVisibleItemCount As Int

  GetVisibleItemPosition (First As Boolean, Completely As Boolean) As Int

  HasFixedSize As Boolean

  HasNestedScrollingParent As Boolean [read only]

  HasPendingAdapterUpdates As Boolean [read only]

  Height As Int

  Indicator As com.aghajari.rv.utils.DividerP

  Initializer (EventName As String) As com.aghajari.rv.Amir_RecyclerView.Layouts

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  InvalidateItemDecorations

  IsAnimating As Boolean [read only]

  IsAttachedToWindow As Boolean [read only]

  IsComputingLayout As Boolean [read only]

  IsInitialized As Boolean

  ItemAnimator As android.support.v7.widget.RecyclerView.ItemAnimator

  ItemAnimatorManager As com.aghajari.rv.utils.ItemAnimatorManager [read only]

  ItemOffsetsListener (Enabled As Boolean)

  ItemViewCacheSize As Int [write only]

  LAYOUT_DIRECTION_INHERIT As Int

  LAYOUT_DIRECTION_LOCALE As Int

  LAYOUT_DIRECTION_LTR As Int

  LAYOUT_DIRECTION_RTL As Int

  LAYOUT_GRID As Int

  LAYOUT_LINEAR As Int

  LAYOUT_STAGGERED_GRID As Int

  LAYOUT_UNKNOW As Int

  LayoutDirection As Int

  LayoutFrozen As Boolean

  LayoutSpanCount As Int [read only]

  LayoutType As Int [read only]

  Left As Int

  LinearSnapHelper

  LinearSnapHelper2 (Gravity As Int, EnableSnapLastItem As Boolean)

  Listeners As com.aghajari.rv.utils.Listeners [read only]

  LongClickable As Boolean

  MotionEventSplitting As Boolean

  NestedScrollingEnabled As Boolean

  NO_ID As Long

  NO_POSITION As Int

  OffsetChildrenHorizontal (dx As Int)

  OffsetChildrenVertical (dy As Int)

  Padding() As Int

  PagerSnapHelper

  PagerSnapHelper2 (Gravity As Int, EnableSnapLastItem As Boolean)

  Parent As Object [read only]

  PreserveFocusAfterLayout As Boolean

  RemoveSpaceItemDecoration

  RemoveView

  RequestFocus As Boolean

  SCROLL_AXIS_HORIZONTAL As Int

  SCROLL_AXIS_VERTICAL As Int

  SCROLL_STATE_DRAGGING As Int

  SCROLL_STATE_IDLE As Int

  SCROLL_STATE_SETTLING As Int

  ScrollBy (X As Int, Y As Int)

  ScrollingTouchSlop As Int [write only]

  ScrollSettings As com.aghajari.rv.Amir_RecyclerView.ScrollBar [read only]

  ScrollState As Int [read only]

  ScrollToEndListener (Enabled As Boolean)

  ScrollToPosition (position As Int)

  ScrollToStartListener (Enabled As Boolean)

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap) As BitmapDrawable

  SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)

  SetRecyclerViewStyle (StyleName As String)

  SetVisibleAnimated (arg0 As Int, arg1 As Boolean)

  SmoothScrollBy (dx As Int, dy As Int)

  SmoothScrollToPosition (Position As Int)

  SmoothScrollToPosition2 (Position As Int, DistanceInPixels As Int, Duration As Int) As Amir_RVSmoothScroller

  SpaceItemDecoration As com.aghajari.rv.Amir_RecyclerView.SpaceBuilder

  StartNestedScroll (axes As Int)

  StopNestedScroll

  StopScroll

  SwapAdapter (Adapter As android.support.v7.widget.RecyclerView.Adapter, RemoveAndRecycleExistingViews As Boolean)

  SwitchLayout As com.aghajari.rv.Amir_RecyclerView.Layouts

  Tag As Object

  Top As Int

  TOUCH_SLOP_DEFAULT As Int

  TOUCH_SLOP_PAGING As Int

  UpdateLayout As com.aghajari.rv.Amir_RecyclerView.ULayouts

  UpdateViews

  Utils As Amir_RVUtils [read only]

  Visible As Boolean

  Width As Int

Members description:

About As String [read only]
Amir_RecyclerView © Amir Hossein Aghajari
Adapter As android.support.v7.widget.RecyclerView.Adapter
set : Set a new adapter to provide child views on demand.
get : Retrieves the previously set adapter or null if no adapter is set.
Adapter2 As com.aghajari.rv.AdapterData [read only]
Manage adapter and notifi adapter
Example :
RecyclerView.Adapter2.NotifiDataSetChanged
Background As android.graphics.drawable.Drawable
Baseline As Int [read only]
Return the offset of the RecyclerView's text baseline from the its top boundary.
BringToFront
CanScrollHorizontally As Boolean [read only]
CanScrollVertically As Boolean [read only]
CenterItemPosition As Int [read only]
CenterItemView As android.view.View [read only]
Clickable As Boolean
ClipToPadding As Boolean
Returns whether this RecyclerView will clip its children to its padding,
and resize (but not clip) any EdgeEffect to the padded region, if padding
is present.
Color As Int [write only]
ComputeScrollExtent (Horizontal As Boolean) As Int
Compute the extent of the scrollbar's thumb within the range.
ComputeScrollOffset (Horizontal As Boolean) As Int
Compute the offset of the scrollbar's thumb within the range.
ComputeScrollRange (Horizontal As Boolean) As Int
Compute the range that the scrollbar represents.
DefaultAdapter As Amir_RVAdapter
Initialize Default Adapter With RecyclerView EventName

Example :
RecyclerView.DefaultAdapter
Sub EventName_onCreateViewHolder (Parent As Panel,ViewType As Int)
End Sub
Sub EventName_onBindViewHolder (Parent As Panel,Position As int)
End Sub
Sub EventName_GetItemCount As int
Return 0
End Sub
DefaultItemAnimator
Use Default RecyclerView Item Animator
DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
Don't Call This Method !
DividerHorizontal As com.aghajari.rv.utils.DividerH
For layout manager having vertical orientation to draw horizontal divider
Example :
RecyclerView.DividerHorizontal.Color(Colors.LightGray).Margin(4dip).Size(1dip).Build
DividerVertical As com.aghajari.rv.utils.DividerV
For layout manager having horizontal orientation to draw vertical divider
Example :
RecyclerView.DividerVertical.Color(Colors.LightGray).Margin(4dip).Size(1dip).Build
Enabled As Boolean
Fling (velocityX As Int, velocityY As Int) As Boolean
Begin a standard fling with an initial velocity along each axis in pixels per second.

velocityX: Initial horizontal velocity in pixels per second
velocityY: Initial vertical velocity in pixels per second
FlingListener (StandardFlingIfMissingSub As Boolean)
Set a RecyclerView OnFlingListener for this RecyclerView.
Events :
EventName_onFling (velocityX As int, velocityY As int) As Boolean

Example :
RecyclerView.Initializer("Amir").ListView.Build
...
RecyclerView.FlingListener(True)
...
Sub Amir_onFling (velocityX As int, velocityY As int) As Boolean
Log("velocityX:" &velocityX&" | velocityY:"&velocityY)
Return RecyclerView.Fling(velocityX,velocityY) 'Standard Fling
End Sub
FlingVelocityMax As Int [read only]
get the maximum fling velocity used by this RecyclerView.
FlingVelocityMin As Int [read only]
get the minimum velocity to start a fling.
GetVisibleItemCount As Int
GetVisibleItemPosition (First As Boolean, Completely As Boolean) As Int
HasFixedSize As Boolean
RecyclerView can perform several optimizations if it can know in advance that changes in
adapter content cannot change the size of the RecyclerView itself.
If your use of RecyclerView falls into this category, set this to true.
HasNestedScrollingParent As Boolean [read only]
HasPendingAdapterUpdates As Boolean [read only]
Returns whether there are pending adapter updates which are not yet applied to the layout.
Height As Int
Indicator As com.aghajari.rv.utils.DividerP
RecyclerView Pager Indicator
Initializer (EventName As String) As com.aghajari.rv.Amir_RecyclerView.Layouts
Initialize RecyclerView
Don't Forgot to set RecyclerView Layout And RecyclerView Adapter !

Layout :
Linear Layout Example :
Dim RecyclerView As Amir_RecyclerView
RecyclerView.Initializer("Amir").ListView.ReverseLayout(True).Build

Grid Layout Example :
Dim RecyclerView As Amir_RecyclerView
RecyclerView.Initializer("Amir").GridView(3).Build


Adapters :
Show With Default Adapter :
RecyclerView.DefaultAdapter
Sub Amir_onCreateViewHolder (Parent As Panel,ViewType As Int)
End Sub
Sub Amir_onBindViewHolder (Parent As Panel,Position As int)
End Sub
Sub Amir_GetItemCount As int
Return 0
End Sub

Use Custom Adapter :
RecyclerView.Adapter=CustomAdapter
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
InvalidateItemDecorations
Invalidates all ItemDecorations.
IsAnimating As Boolean [read only]
Returns true if RecyclerView is currently running some animations.
IsAttachedToWindow As Boolean [read only]
Returns true if RecyclerView is attached to window.
IsComputingLayout As Boolean [read only]
Returns whether RecyclerView is currently computing a layout.
IsInitialized As Boolean
ItemAnimator As android.support.v7.widget.RecyclerView.ItemAnimator
gets the current ItemAnimator for this RecyclerView. or
Sets the RecyclerView ItemAnimator that will handle animations
involving changes to the items in this RecyclerView.
ItemAnimatorManager As com.aghajari.rv.utils.ItemAnimatorManager [read only]
ItemOffsetsListener (Enabled As Boolean)
Enable or disable item offsets listener
Event :
EventName_GetItemOffsets (OutRect As Rect,Item As Object,Position As Int)

Hidden Events :
EventName_onDraw (c As Canvas)
EventName_onDrawOver (c As Canvas)
_________________________________________________________________________
Example :
Space between items :
RecyclerView.ItemOffsetsListener(True)
Sub RecyclerView_GetItemOffsets (OutRect As Rect,Item As Object,Position As Int)
  OutRect.Top=10dip
  If Position = Recycler.Adapter2.ItemCount-1 Then
    OutRect.Bottom=10dip
  End If
  OutRect.Left=10dip
  OutRect.Right=10dip
End Sub
ItemViewCacheSize As Int [write only]
Set the number of offscreen views to retain before adding them
to the potentially shared recycled view pool.
LAYOUT_DIRECTION_INHERIT As Int
LAYOUT_DIRECTION_LOCALE As Int
LAYOUT_DIRECTION_LTR As Int
LAYOUT_DIRECTION_RTL As Int
Manifest :
SetApplicationAttribute(android:supportsRtl, "true")
LAYOUT_GRID As Int
LAYOUT_LINEAR As Int
LAYOUT_STAGGERED_GRID As Int
LAYOUT_UNKNOW As Int
LayoutDirection As Int
Support Rtl (Manifest) :
SetApplicationAttribute(android:supportsRtl, "true")
LayoutFrozen As Boolean
Enable or disable layout and scroll.
LayoutSpanCount As Int [read only]
Get Recycler Layout Span Count
-1 For Unknow And 1 For Linear Type
LayoutType As Int [read only]
Get RecyclerView Layout Type
Left As Int
LinearSnapHelper
LinearSnapHelper2 (Gravity As Int, EnableSnapLastItem As Boolean)
Gravity :
SnapHelper Gravity : START-LEFT | END-RIGHT | BOTTOM | TOP
EnableSnapLastItem :
Enable snapping of the last item that's snappable.
Note you can't see the last item completely if this is enabled.
Event :
RecyclerEventName_onSnap (Position As Int)
Listeners As com.aghajari.rv.utils.Listeners [read only]
add or remove listener with new context
LongClickable As Boolean
Enables or disables long click events for this view.
MotionEventSplitting As Boolean
NestedScrollingEnabled As Boolean
NO_ID As Long
NO_POSITION As Int
OffsetChildrenHorizontal (dx As Int)
Offset the bounds of all child views by dx pixels.
OffsetChildrenVertical (dy As Int)
Offset the bounds of all child views by dy pixels.
Padding() As Int
PagerSnapHelper
PagerSnapHelper2 (Gravity As Int, EnableSnapLastItem As Boolean)
Gravity :
PagerSnapHelper Gravity : START-LEFT | END-RIGHT | BOTTOM | TOP
EnableSnapLastItem :
Enable snapping of the last item that's snappable.
Note you can't see the last item completely if this is enabled.
Event :
RecyclerEventName_onSnap (Position As Int)
Parent As Object [read only]
PreserveFocusAfterLayout As Boolean
Set whether the RecyclerView should try to keep the same
Item focused after a layout calculation or not.
RemoveSpaceItemDecoration
RemoveView
RequestFocus As Boolean
SCROLL_AXIS_HORIZONTAL As Int
Indicates scrolling along the horizontal axis.
SCROLL_AXIS_VERTICAL As Int
Indicates scrolling along the vertical axis.
SCROLL_STATE_DRAGGING As Int
The RecyclerView is currently being dragged by outside input such as user touch input.
SCROLL_STATE_IDLE As Int
The RecyclerView is not currently scrolling.
SCROLL_STATE_SETTLING As Int
The RecyclerView is currently animating to a final position while not under
outside control.
ScrollBy (X As Int, Y As Int)
ScrollingTouchSlop As Int [write only]
Configure the scrolling touch slop for a specific use case.
Set up the RecyclerView's scrolling motion threshold based on common usages.
Valid arguments are TOUCH_SLOP_DEFAULT and TOUCH_SLOP_PAGING.
ScrollSettings As com.aghajari.rv.Amir_RecyclerView.ScrollBar [read only]
Scroll And ScrollBar Settings
Don't Forgot to Enable ScrollBars !

Add ScrollBar :
Manifest :
CreateResource(values,recycler.xml,<resources>
<style name="ScrollbarRecyclerView" parent="android:Widget">
<item name="android:scrollbars">vertical</item>
</style> </resources>)

set theme to recyclerView :
RecyclerView.SetRecyclerViewStyle("ScrollbarRecyclerView")
ScrollState As Int [read only]
Return the current scrolling state of the RecyclerView.
ScrollToEndListener (Enabled As Boolean)
ScrollToPosition (position As Int)
ScrollToStartListener (Enabled As Boolean)
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap) As BitmapDrawable
SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
SetRecyclerViewStyle (StyleName As String)
Set RecyclerView Theme
Note : you can use this method before initialize recyclerview

Example (Add ScrollBar):
Manifest :
CreateResource(values,recycler.xml,<resources>
<style name="ScrollbarRecyclerView" parent="android:Widget">
<item name="android:scrollbars">vertical</item>
</style> </resources>)

set theme to recyclerView :
RecyclerView.SetRecyclerViewStyle("ScrollbarRecyclerView")
SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
SmoothScrollBy (dx As Int, dy As Int)
Animate a scroll by the given amount of pixels along either axis.

dx: Pixels to scroll horizontally
dy: Pixels to scroll vertically
SmoothScrollToPosition (Position As Int)
SmoothScrollToPosition2 (Position As Int, DistanceInPixels As Int, Duration As Int) As Amir_RVSmoothScroller
working on LinearLayout (ListView)
SpaceItemDecoration As com.aghajari.rv.Amir_RecyclerView.SpaceBuilder
StartNestedScroll (axes As Int)
StopNestedScroll
StopScroll
Stop any current scroll in progress, such as one started by
smoothScrollBy , fling or a touch-initiated fling.
SwapAdapter (Adapter As android.support.v7.widget.RecyclerView.Adapter, RemoveAndRecycleExistingViews As Boolean)
Swaps the current adapter with the provided one.

Adapter: The new adapter to set, or null to set no adapter.
RemoveAndRecycleExistingViews: If set to true, RecyclerView will recycle all existing Views.
If adapters have stable ids and/or you want to animate the disappearing views, you may prefer to set this to false.
SwitchLayout As com.aghajari.rv.Amir_RecyclerView.Layouts
Switch RecyclerView Layout
Example :
RecyclerView.Initializer("Amir").GridView(3).Vertical.Build
...
RecyclerView.SwitchLayout.ListView.Vertical.Build
Tag As Object
Top As Int
TOUCH_SLOP_DEFAULT As Int
Constant for use with ScrollingTouchSlop.
Indicates that the RecyclerView should use the standard
touch slop for smooth, continuous scrolling.
TOUCH_SLOP_PAGING As Int
Constant for use with ScrollingTouchSlop.
Indicates that the RecyclerView should use the standard
touch slop for scrolling widgets that snap to a page or
other coarse-grained barrier.
UpdateLayout As com.aghajari.rv.Amir_RecyclerView.ULayouts
Update RecyclerView Layout
Example :
RecyclerView.Initializer("Amir").GridView(3).Vertical.Build
...
RecyclerView.UpdateLayout.GridView.SpanCount(4)
UpdateViews
Update Visible Items and raise onUpdateViews event
onUpdateViews (Item As Object,Position As Int)
Utils As Amir_RVUtils [read only]
Visible As Boolean
Width As Int

Amir_RecyclerViewPager


Events:

onScrollStateChanged (NewState As int)
onScrolled (Dx As int,Dy As int)
onPageChanging (CurrentPage As Int,NewPage As Int)
onPageChanged (PreviousPage As Int,NewPage As Int)
GetItemOffsets (OutRect As Rect,Item As Object,Position As Int)

Members:


  Adapter As android.support.v7.widget.RecyclerView.Adapter

  Adapter2 As com.aghajari.rv.AdapterData [read only]

  Adjust

  Adjusted As Boolean

  Background As android.graphics.drawable.Drawable

  Baseline As Int [read only]

  BringToFront

  ClipToPadding As Boolean

  Color As Int [write only]

  ComputeScrollExtent (Horizontal As Boolean) As Int

  ComputeScrollOffset (Horizontal As Boolean) As Int

  ComputeScrollRange (Horizontal As Boolean) As Int

  CurrentPage As Int [read only]

  CurrentPageView As PanelWrapper [read only]

  DefaultAdapter As Amir_RVAdapter

  DefaultItemAnimator

  DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)

  DoScroll (prevPosition As Int, newPosition As Int)

  Enabled As Boolean

  Fling (velocityX As Int, velocityY As Int)

  FlingListener (StandardFlingIfMissingSub As Boolean)

  FlingVelocityMax As Int [read only]

  FlingVelocityMin As Int [read only]

  GoToNext (Smooth As Boolean)

  GoToPosition (Position As Int)

  GoToPrevious (Smooth As Boolean)

  HasFixedSize As Boolean

  HasNestedScrollingParent As Boolean [read only]

  HasPendingAdapterUpdates As Boolean [read only]

  Height As Int

  Indicator As com.aghajari.rv.utils.DividerP

  Initializer (EventName As String) As com.aghajari.rv.Amir_RecyclerViewPager.Builder

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  InvalidateItemDecorations

  IsAnimating As Boolean [read only]

  IsAttachedToWindow As Boolean [read only]

  IsComputingLayout As Boolean [read only]

  IsInitialized As Boolean

  ItemAnimator As android.support.v7.widget.RecyclerView.ItemAnimator

  ItemAnimatorManager As com.aghajari.rv.utils.ItemAnimatorManager [read only]

  ItemOffsetsListener (Enabled As Boolean)

  ItemViewCacheSize As Int [write only]

  LAYOUT_DIRECTION_INHERIT As Int

  LAYOUT_DIRECTION_LOCALE As Int

  LAYOUT_DIRECTION_LTR As Int

  LAYOUT_DIRECTION_RTL As Int

  LayoutDirection As Int

  LayoutFrozen As Boolean

  Left As Int

  Listeners As com.aghajari.rv.utils.Listeners [read only]

  NestedScrollingEnabled As Boolean

  NO_ID As Long

  NO_POSITION As Int

  OffsetChildrenHorizontal (dx As Int)

  OffsetChildrenVertical (dy As Int)

  Padding() As Int

  Parent As Object [read only]

  PreserveFocusAfterLayout As Boolean

  RemoveView

  RequestFocus As Boolean

  SCROLL_AXIS_HORIZONTAL As Int

  SCROLL_AXIS_VERTICAL As Int

  SCROLL_STATE_DRAGGING As Int

  SCROLL_STATE_IDLE As Int

  SCROLL_STATE_SETTLING As Int

  ScrollBy (X As Int, Y As Int)

  ScrollingTouchSlop As Int [write only]

  ScrollState As Int [read only]

  ScrollToPosition (position As Int)

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap) As BitmapDrawable

  SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)

  SetVisibleAnimated (arg0 As Int, arg1 As Boolean)

  ShowOnlyOneItem As Boolean

  SmoothScrollBy (dx As Int, dy As Int)

  SmoothScrollToPosition (Position As Int)

  SmoothScrollToPosition2 (Position As Int, DistanceInPixels As Int, Duration As Int) As Amir_RVSmoothScroller

  StartNestedScroll (axes As Int)

  StopNestedScroll

  StopScroll

  SwapAdapter (Adapter As android.support.v7.widget.RecyclerView.Adapter, RemoveAndRecycleExistingViews As Boolean)

  SwitchLayout As com.aghajari.rv.Amir_RecyclerViewPager.Builder

  Tag As Object

  Top As Int

  TOUCH_SLOP_DEFAULT As Int

  TOUCH_SLOP_PAGING As Int

  TriggerOffset As Float

  UpdateLayout As com.aghajari.rv.Amir_RecyclerViewPager.Builder

  Utils As Amir_RVUtils [read only]

  Visible As Boolean

  Width As Int

Members description:

Adapter As android.support.v7.widget.RecyclerView.Adapter
set : Set a new adapter to provide child views on demand.
get : Retrieves the previously set adapter or null if no adapter is set.
Adapter2 As com.aghajari.rv.AdapterData [read only]
Manage adapter and notifi adapter
Example :
RecyclerView.Adapter2.NotifiDataSetChanged
Adjust
Adjusted As Boolean
Background As android.graphics.drawable.Drawable
Baseline As Int [read only]
Return the offset of the RecyclerView's text baseline from the its top boundary.
BringToFront
ClipToPadding As Boolean
Returns whether this RecyclerView will clip its children to its padding,
and resize (but not clip) any EdgeEffect to the padded region, if padding
is present.
Color As Int [write only]
ComputeScrollExtent (Horizontal As Boolean) As Int
Compute the extent of the scrollbar's thumb within the range.
ComputeScrollOffset (Horizontal As Boolean) As Int
Compute the offset of the scrollbar's thumb within the range.
ComputeScrollRange (Horizontal As Boolean) As Int
Compute the range that the scrollbar represents.
CurrentPage As Int [read only]
CurrentPageView As PanelWrapper [read only]
DefaultAdapter As Amir_RVAdapter
Initialize Default Adapter With RecyclerView EventName

Example :
RecyclerView.DefaultAdapter
Sub EventName_onCreateViewHolder (Parent As Panel,ViewType As Int)
End Sub
Sub EventName_onBindViewHolder (Parent As Panel,Position As int)
End Sub
Sub EventName_GetItemCount As int
Return 0
End Sub
DefaultItemAnimator
Use Default RecyclerView Item Animator
DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
Don't Call This Method !
DoScroll (prevPosition As Int, newPosition As Int)
Enabled As Boolean
Fling (velocityX As Int, velocityY As Int)
Begin a standard fling with an initial velocity along each axis in pixels per second.

velocityX: Initial horizontal velocity in pixels per second
velocityY: Initial vertical velocity in pixels per second
FlingListener (StandardFlingIfMissingSub As Boolean)
Set a RecyclerView OnFlingListener for this RecyclerView.
Events :
EventName_onFling (velocityX As int, velocityY As int) As Boolean

Example :
RecyclerView.Initializer("Amir").ListView.Build
...
RecyclerView.FlingListener(True)
...
Sub Amir_onFling (velocityX As int, velocityY As int) As Boolean
Log("velocityX:" &velocityX&" | velocityY:"&velocityY)
Return RecyclerView.Fling(velocityX,velocityY) 'Standard Fling
End Sub
FlingVelocityMax As Int [read only]
get the maximum fling velocity used by this RecyclerView.
FlingVelocityMin As Int [read only]
get the minimum velocity to start a fling.
GoToNext (Smooth As Boolean)
GoToPosition (Position As Int)
GoToPrevious (Smooth As Boolean)
HasFixedSize As Boolean
RecyclerView can perform several optimizations if it can know in advance that changes in
adapter content cannot change the size of the RecyclerView itself.
If your use of RecyclerView falls into this category, set this to true.
HasNestedScrollingParent As Boolean [read only]
HasPendingAdapterUpdates As Boolean [read only]
Returns whether there are pending adapter updates which are not yet applied to the layout.
Height As Int
Indicator As com.aghajari.rv.utils.DividerP
Initializer (EventName As String) As com.aghajari.rv.Amir_RecyclerViewPager.Builder
Initialize View Pager
Don't Forgot to set recyclerView Layout and recyclerView adapter !
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
InvalidateItemDecorations
Invalidates all ItemDecorations.
IsAnimating As Boolean [read only]
Returns true if RecyclerView is currently running some animations.
IsAttachedToWindow As Boolean [read only]
Returns true if RecyclerView is attached to window.
IsComputingLayout As Boolean [read only]
Returns whether RecyclerView is currently computing a layout.
IsInitialized As Boolean
ItemAnimator As android.support.v7.widget.RecyclerView.ItemAnimator
gets the current ItemAnimator for this RecyclerView. or
Sets the RecyclerView ItemAnimator that will handle animations
involving changes to the items in this RecyclerView.
ItemAnimatorManager As com.aghajari.rv.utils.ItemAnimatorManager [read only]
ItemOffsetsListener (Enabled As Boolean)
Enable or disable item offsets listener
Event :
EventName_GetItemOffsets (OutRect As Rect,Item As Object,Position As Int)

Hidden Events :
EventName_onDraw (c As Canvas)
EventName_onDrawOver (c As Canvas)
_________________________________________________________________________
Example :
Space between items :
RecyclerView.ItemOffsetsListener(True)
Sub RecyclerView_GetItemOffsets (OutRect As Rect,Item As Object,Position As Int)
  OutRect.Top=10dip
  If Position = Recycler.Adapter2.ItemCount-1 Then
    OutRect.Bottom=10dip
  End If
  OutRect.Left=10dip
  OutRect.Right=10dip
End Sub
ItemViewCacheSize As Int [write only]
Set the number of offscreen views to retain before adding them
to the potentially shared recycled view pool.
LAYOUT_DIRECTION_INHERIT As Int
LAYOUT_DIRECTION_LOCALE As Int
LAYOUT_DIRECTION_LTR As Int
LAYOUT_DIRECTION_RTL As Int
Manifest :
SetApplicationAttribute(android:supportsRtl, "true")
LayoutDirection As Int
Support Rtl (Manifest) :
SetApplicationAttribute(android:supportsRtl, "true")
LayoutFrozen As Boolean
Enable or disable layout and scroll.
Left As Int
Listeners As com.aghajari.rv.utils.Listeners [read only]
add or remove listener with new context
NestedScrollingEnabled As Boolean
NO_ID As Long
NO_POSITION As Int
OffsetChildrenHorizontal (dx As Int)
Offset the bounds of all child views by dx pixels.
OffsetChildrenVertical (dy As Int)
Offset the bounds of all child views by dy pixels.
Padding() As Int
Parent As Object [read only]
PreserveFocusAfterLayout As Boolean
Set whether the RecyclerView should try to keep the same
Item focused after a layout calculation or not.
RemoveView
RequestFocus As Boolean
SCROLL_AXIS_HORIZONTAL As Int
Indicates scrolling along the horizontal axis.
SCROLL_AXIS_VERTICAL As Int
Indicates scrolling along the vertical axis.
SCROLL_STATE_DRAGGING As Int
The RecyclerView is currently being dragged by outside input such as user touch input.
SCROLL_STATE_IDLE As Int
The RecyclerView is not currently scrolling.
SCROLL_STATE_SETTLING As Int
The RecyclerView is currently animating to a final position while not under
outside control.
ScrollBy (X As Int, Y As Int)
ScrollingTouchSlop As Int [write only]
Configure the scrolling touch slop for a specific use case.
Set up the RecyclerView's scrolling motion threshold based on common usages.
Valid arguments are TOUCH_SLOP_DEFAULT and TOUCH_SLOP_PAGING.
ScrollState As Int [read only]
Return the current scrolling state of the RecyclerView.
ScrollToPosition (position As Int)
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap) As BitmapDrawable
SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
ShowOnlyOneItem As Boolean
SmoothScrollBy (dx As Int, dy As Int)
Animate a scroll by the given amount of pixels along either axis.

dx: Pixels to scroll horizontally
dy: Pixels to scroll vertically
SmoothScrollToPosition (Position As Int)
SmoothScrollToPosition2 (Position As Int, DistanceInPixels As Int, Duration As Int) As Amir_RVSmoothScroller
StartNestedScroll (axes As Int)
StopNestedScroll
StopScroll
Stop any current scroll in progress, such as one started by
smoothScrollBy , fling or a touch-initiated fling.
SwapAdapter (Adapter As android.support.v7.widget.RecyclerView.Adapter, RemoveAndRecycleExistingViews As Boolean)
Swaps the current adapter with the provided one.

Adapter: The new adapter to set, or null to set no adapter.
RemoveAndRecycleExistingViews: If set to true, RecyclerView will recycle all existing Views.
If adapters have stable ids and/or you want to animate the disappearing views, you may prefer to set this to false.
SwitchLayout As com.aghajari.rv.Amir_RecyclerViewPager.Builder
Set New Layout for this recyclerview
Tag As Object
Top As Int
TOUCH_SLOP_DEFAULT As Int
Constant for use with ScrollingTouchSlop.
Indicates that the RecyclerView should use the standard
touch slop for smooth, continuous scrolling.
TOUCH_SLOP_PAGING As Int
Constant for use with ScrollingTouchSlop.
Indicates that the RecyclerView should use the standard
touch slop for scrolling widgets that snap to a page or
other coarse-grained barrier.
TriggerOffset As Float
UpdateLayout As com.aghajari.rv.Amir_RecyclerViewPager.Builder
update this recyclerview Layout
Utils As Amir_RVUtils [read only]
Visible As Boolean
Width As Int

Amir_RVAdapter


Events:

GetItemCount As Int
onBindViewHolder (Parent As Panel,Position As int)
onCreateViewHolder (Parent As Panel,ViewType As int)
GetItemViewType (Position As int) As Int
GetItemId (Position As Int) As Long
GetLoopPosition (Parent As Panel,LoopPosition As Int,Position As Int)
onViewRecycled (Parent As Panel,Position As Int)
onItemClick (Parent As Panel,Position As int)
onItemLongClick (Parent As Panel,Position As int)
onItemTouch (Parent As Panel,Position As int,Action As int,X As Float,Y As Float)
onLoadAnimation (Parent As Panel,Position As int)

Members:


  EnableAdapterDataObserver

  Initialize (EventName As String, LoopMode As Int)

  IntoRecyclerView (RecyclerView As android.support.v7.widget.RecyclerView)

  IsInitialized As Boolean

  LOOP_BOTTOM As Int

  LOOP_FULL As Int

  LOOP_NEVER As Int

  LoopMode As Int [read only]

  Ripple As com.aghajari.rv.Amir_RVAdapter.RippleBuilder

  <span style="color: #000000; ">s

  SetLayout (Width As Int, Height As Int)

Members description:

EnableAdapterDataObserver
Add Adapter Data Change Events
EventName_onChanged As Boolean
EventName_onItemRangeChanged (PositionStart As int,ItemCount As int) As Boolean
EventName_onItemRangeInserted (PositionStart As int,ItemCount As int) As Boolean
EventName_onItemRangeRemoved (PositionStart As int,ItemCount As int) As Boolean
Initialize (EventName As String, LoopMode As Int)
Initialize New Adapter for RecyclerView
IntoRecyclerView (RecyclerView As android.support.v7.widget.RecyclerView)
IsInitialized As Boolean
LOOP_BOTTOM As Int
LOOP_FULL As Int
LOOP_NEVER As Int
LoopMode As Int [read only]
Ripple As com.aghajari.rv.Amir_RVAdapter.RippleBuilder
s
SetLayout (Width As Int, Height As Int)

Amir_RVLayoutManager


Events:

SupportsPredictiveItemAnimations As Boolean
CanScrollHorizontally As Boolean
CanScrollVertically As Boolean
ScrollVerticallyBy (Dy As int,Recycler As Object,State As Object) As Int
ScrollHorizontallyBy (Dx As Int,Recycler As Object,State As Object) As Int
onLayoutChildren (Recycler As Object,State As Object)

Members:


  AsGridLayout As com.aghajari.rv.Amir_RVLayoutManager.GridLayoutBuilder

  AsLinearLayout As com.aghajari.rv.Amir_RVLayoutManager.LinerLayoutBuilder

  AsStaggeredGridLayout As com.aghajari.rv.Amir_RVLayoutManager.StaggeredGridLayoutBuilder

  CanScrollHorizontally As Boolean [read only]

  CanScrollVertically As Boolean [read only]

  Import (RecyclerView As com.aghajari.rv.RecyclerView)

  IsInitialized As Boolean

  LayoutManager As android.support.v7.widget.RecyclerView.LayoutManager

  NewGridLayout (Ev As String, SpanCount As Int) As com.aghajari.rv.Amir_RVLayoutManager.GridLayoutBuilder

  NewLinearLayout (Ev As String) As com.aghajari.rv.Amir_RVLayoutManager.LinerLayoutBuilder

  NewLinearLayout2 (Ev As String, Orientation As Int, ReverseLayout As Boolean) As com.aghajari.rv.Amir_RVLayoutManager.LinerLayoutBuilder

  NewStaggeredGridLayout (Ev As String, SpanCount As Int, Orientation As Int) As com.aghajari.rv.Amir_RVLayoutManager.StaggeredGridLayoutBuilder

  OnLayoutChildren (recycler As android.support.v7.widget.RecyclerView.Recycler, state As android.support.v7.widget.RecyclerView.State)

  ScrollHorizontallyBy (dx As Int, recycler As android.support.v7.widget.RecyclerView.Recycler, state As android.support.v7.widget.RecyclerView.State) As Int

  ScrollVerticallyBy (dy As Int, recycler As android.support.v7.widget.RecyclerView.Recycler, state As android.support.v7.widget.RecyclerView.State) As Int

  SupportsPredictiveItemAnimations As Boolean [read only]

Members description:

AsGridLayout As com.aghajari.rv.Amir_RVLayoutManager.GridLayoutBuilder
AsLinearLayout As com.aghajari.rv.Amir_RVLayoutManager.LinerLayoutBuilder
AsStaggeredGridLayout As com.aghajari.rv.Amir_RVLayoutManager.StaggeredGridLayoutBuilder
CanScrollHorizontally As Boolean [read only]
CanScrollVertically As Boolean [read only]
Import (RecyclerView As com.aghajari.rv.RecyclerView)
IsInitialized As Boolean
LayoutManager As android.support.v7.widget.RecyclerView.LayoutManager
NewGridLayout (Ev As String, SpanCount As Int) As com.aghajari.rv.Amir_RVLayoutManager.GridLayoutBuilder
NewLinearLayout (Ev As String) As com.aghajari.rv.Amir_RVLayoutManager.LinerLayoutBuilder
NewLinearLayout2 (Ev As String, Orientation As Int, ReverseLayout As Boolean) As com.aghajari.rv.Amir_RVLayoutManager.LinerLayoutBuilder
NewStaggeredGridLayout (Ev As String, SpanCount As Int, Orientation As Int) As com.aghajari.rv.Amir_RVLayoutManager.StaggeredGridLayoutBuilder
OnLayoutChildren (recycler As android.support.v7.widget.RecyclerView.Recycler, state As android.support.v7.widget.RecyclerView.State)
ScrollHorizontallyBy (dx As Int, recycler As android.support.v7.widget.RecyclerView.Recycler, state As android.support.v7.widget.RecyclerView.State) As Int
ScrollVerticallyBy (dy As Int, recycler As android.support.v7.widget.RecyclerView.Recycler, state As android.support.v7.widget.RecyclerView.State) As Int
SupportsPredictiveItemAnimations As Boolean [read only]

Amir_RVMultiAdapter


Events:

None

Members:


  AddAdapter (adapter As android.support.v7.widget.RecyclerView.Adapter)

  AddAdapter2 (adapter As android.support.v7.widget.RecyclerView.Adapter, Index As Int)

  Clear

  DefaultAdapter As Int

  GetAdapter (Index As Int) As android.support.v7.widget.RecyclerView.Adapter

  GetAdapterIndex (Adapter As android.support.v7.widget.RecyclerView.Adapter) As Int

  getItemId (position As Int) As Long

  getItemViewType (position As Int) As Int

  HasObservers As Boolean [read only]

  HasStableIds As Boolean

  Initialize

  IntoRecyclerView (RecyclerView As android.support.v7.widget.RecyclerView)

  IsInitialized As Boolean

  NotifyDataItemInserted (position As Int)

  NotifyDataItemRangeInserted (positionStart As Int, itemCount As Int)

  NotifyDataItemRangeRemoved (positionStart As Int, itemCount As Int)

  NotifyDataItemRemoved (position As Int)

  NotifyDataSetChanged

  NotifyItemChanged (position As Int)

  NotifyItemRangeChanged (positionStart As Int, itemCount As Int)

  RemoveAdapter (adapter As android.support.v7.widget.RecyclerView.Adapter)

  RemoveAdapter2 (Index As Int)

  Size As Int [read only]

Members description:

AddAdapter (adapter As android.support.v7.widget.RecyclerView.Adapter)
Add Adapter
AddAdapter2 (adapter As android.support.v7.widget.RecyclerView.Adapter, Index As Int)
Add Adapter
Clear
Clear Adapters
DefaultAdapter As Int
GetAdapter (Index As Int) As android.support.v7.widget.RecyclerView.Adapter
Get Adapter
GetAdapterIndex (Adapter As android.support.v7.widget.RecyclerView.Adapter) As Int
Get Index Of Adapter
getItemId (position As Int) As Long
Return the stable ID for the item at position. If HasStableIds
would return false this method should return -1. The default implementation
of this method returns -1.

Position : Adapter position to query
Return the stable ID of the item at position
getItemViewType (position As Int) As Int
Return the view type of the item at position for the purposes
of view recycling.
HasObservers As Boolean [read only]
HasStableIds As Boolean
Returns true if this adapter publishes a unique long value that can
act as a key for the item at a given position in the data set. If that item is relocated
in the data set, the ID returned for that item should be the same.

Return true if this adapter's items have stable IDs
Initialize
IntoRecyclerView (RecyclerView As android.support.v7.widget.RecyclerView)
IsInitialized As Boolean
NotifyDataItemInserted (position As Int)
NotifyDataItemRangeInserted (positionStart As Int, itemCount As Int)
NotifyDataItemRangeRemoved (positionStart As Int, itemCount As Int)
NotifyDataItemRemoved (position As Int)
NotifyDataSetChanged
NotifyItemChanged (position As Int)
NotifyItemRangeChanged (positionStart As Int, itemCount As Int)
RemoveAdapter (adapter As android.support.v7.widget.RecyclerView.Adapter)
Remove Adapter
RemoveAdapter2 (Index As Int)
Remove Adapter
Size As Int [read only]
Get Adapters Size

Amir_RVSmoothScroller

RecyclerView Linear Smooth Scroller

Events:

None

Members:


  Initialize (RecyclerView As android.support.v7.widget.RecyclerView, DistanceInPixels As Int, Duration As Int)

  InstantScrollToPosition (position As Int)

  IsPendingInitialRun As Boolean [read only]

  IsRunning As Boolean [read only]

  Start

  TargetPosition As Int

Members description:

Initialize (RecyclerView As android.support.v7.widget.RecyclerView, DistanceInPixels As Int, Duration As Int)
InstantScrollToPosition (position As Int)
IsPendingInitialRun As Boolean [read only]
Returns true if SmoothScroller has been started but has not received the first
animation callback yet.
return True if this SmoothScroller is waiting to start
IsRunning As Boolean [read only]
return True if SmoothScroller is currently active
Start
Start Smooth Scroll
TargetPosition As Int
set target adapter position for scroll

Amir_RVUtils


Events:

None

Members:


  EnableAdapterDataObserver (Adapter As android.support.v7.widget.RecyclerView.Adapter, EventName As String)

  FilterSearchList (TypeName As String, DataCopy As java.util.List) As com.aghajari.rv.utils.Filter

  GetLoopNextPosition (adapter As android.support.v7.widget.RecyclerView.Adapter, position As Int, Current As Int) As Int

  GetLoopPosition (adapter As android.support.v7.widget.RecyclerView.Adapter, position As Int, Current As Int) As Int

  GetLoopPrevPosition (adapter As android.support.v7.widget.RecyclerView.Adapter, position As Int, Current As Int) As Int

  GetParentFromItemObject (RecyclerView As android.support.v7.widget.RecyclerView, Item As Object) As PanelWrapper

  GetPositionFromLoop (adapter As android.support.v7.widget.RecyclerView.Adapter, LoopPosition As Int) As Int

  GetRippleView (RippleView As android.view.View) As android.view.View

  GetRVLayoutName (RecyclerView As android.support.v7.widget.RecyclerView) As String

  GetSpanSize (Position As Int, Recycler As android.support.v7.widget.RecyclerView) As Int

  GetTextHeight (Label As android.widget.TextView, Text As CharSequence) As Int

  GetTextWidth (Label As android.widget.TextView) As Float

  GetViewHolder As com.aghajari.rv.utils.ViewHolderData

  IsFirstRow (Position As Int, Recycler As android.support.v7.widget.RecyclerView) As Boolean

  IsLastRow (Position As Int, Recycler As android.support.v7.widget.RecyclerView) As Boolean

  RippleToView (View As android.view.View) As com.aghajari.rv.Amir_RVUtils.RippleBuilder

  ViewIndexToAdapterPosition (rv As android.support.v7.widget.RecyclerView, Index As Int) As Int

  ViewIndexToItemObject (rv As android.support.v7.widget.RecyclerView, Index As Int) As android.view.View

  ViewIndexToViewHolder (rv As android.support.v7.widget.RecyclerView, Index As Int) As com.aghajari.rv.utils.ViewHolderData

Members description:

EnableAdapterDataObserver (Adapter As android.support.v7.widget.RecyclerView.Adapter, EventName As String)
Add Adapter Data Change Events
EventName_onChanged As Boolean
EventName_onItemRangeChanged (PositionStart As int,ItemCount As int) As Boolean
EventName_onItemRangeInserted (PositionStart As int,ItemCount As int) As Boolean
EventName_onItemRangeRemoved (PositionStart As int,ItemCount As int) As Boolean
FilterSearchList (TypeName As String, DataCopy As java.util.List) As com.aghajari.rv.utils.Filter
Search in Adapter Data With TypeName
List of data can instanceof Map , String , CustomType
if Data value is String pass "" for TypeName
GetLoopNextPosition (adapter As android.support.v7.widget.RecyclerView.Adapter, position As Int, Current As Int) As Int
Get Next Loop Position of Item Position on Amir_RVLoopAdapter (FullLoop)
return -1 if adapter is not in full loop mode
GetLoopPosition (adapter As android.support.v7.widget.RecyclerView.Adapter, position As Int, Current As Int) As Int
Get Loop Position from Item Position on Amir_RVLoopAdapter (FullLoop)
return -1 if adapter is not in full loop mode
GetLoopPrevPosition (adapter As android.support.v7.widget.RecyclerView.Adapter, position As Int, Current As Int) As Int
Get Previous Loop Position of Item Position on Amir_RVLoopAdapter (FullLoop)
return -1 if adapter is not in full loop mode
GetParentFromItemObject (RecyclerView As android.support.v7.widget.RecyclerView, Item As Object) As PanelWrapper
Get Recycler View Item Parent From Object if Using Default
RecyclerView Adapter (Amir_RVAdapter)
GetPositionFromLoop (adapter As android.support.v7.widget.RecyclerView.Adapter, LoopPosition As Int) As Int
Get Real Item Position from Loop Position
return -1 if adapter is not in Loop mode
GetRippleView (RippleView As android.view.View) As android.view.View
Get View From Ripple Parent
GetRVLayoutName (RecyclerView As android.support.v7.widget.RecyclerView) As String
Get Simple Name Of RecyclerView Layout Manager Class Name
GetSpanSize (Position As Int, Recycler As android.support.v7.widget.RecyclerView) As Int
Check Position In Grid Layout
GetTextHeight (Label As android.widget.TextView, Text As CharSequence) As Int
Get Measure Multiline Text (CharSequence) Height
GetTextWidth (Label As android.widget.TextView) As Float
Get Measure String Width
GetViewHolder As com.aghajari.rv.utils.ViewHolderData
Get RecyclerView ViewHolder.
Note that you can use this method just in onBindViewHolder event!
IsFirstRow (Position As Int, Recycler As android.support.v7.widget.RecyclerView) As Boolean
Check Position In Grid Layout
IsLastRow (Position As Int, Recycler As android.support.v7.widget.RecyclerView) As Boolean
Check Position In Grid Layout
RippleToView (View As android.view.View) As com.aghajari.rv.Amir_RVUtils.RippleBuilder
Add View To Ripple Parent

Example :
'Add Ripple
Dim Label As Label
Label.Initialize("")
Parent.AddView(Label,0,0,Parent.Width,Parent.Height)
Utils.RippleToView(Label).Color(Colors.Gray).Build

'Get View
Dim Label As Label = Utils.GetRippleView(Parent.GetView(0))
ViewIndexToAdapterPosition (rv As android.support.v7.widget.RecyclerView, Index As Int) As Int
Get Adapter Position From Visible View Index
ViewIndexToItemObject (rv As android.support.v7.widget.RecyclerView, Index As Int) As android.view.View
Get Item Object From Visible View Index
ViewIndexToViewHolder (rv As android.support.v7.widget.RecyclerView, Index As Int) As com.aghajari.rv.utils.ViewHolderData
Get View Holder From Visible View Index
Top