Method Blocks
Initializes the component with the specified data list.
Params
Name | Type(s) | Def. value |
---|---|---|
with | | |
data | List | - |
Return Type: Boolean
Returns whether the component can scroll horizontally to the indicated side.
Return Type: Boolean
Returns whether the component can scroll vertically to the indicated side.
This block creates and returns a new Grid Layout Manager, which will display the component as a grid view.
Name | Type(s) | Def. value |
---|---|---|
Number | - | |
horizontal | Boolean | - |
reverse | Boolean | - |
Boolean | - | |
* | LayoutManager | - |
This block creates and returns a new Linear Layout Manager instance, which will display the component as a List.
Name | Type(s) | Def. value |
---|---|---|
horizontal | Boolean | - |
reverse | Boolean | - |
Boolean | - | |
* | LinearLayout | - |
Creates and returns a new StaggeredGridLayoutManager instance, which will allow to display the component as a Staggered Grid layout

Unlike the GridLayoutManager, this manager does not necessarily need the items to have the same size, since it can display them depending on their content.
Name | Type(s) | Def. value |
---|---|---|
Number | - | |
horizontal | Boolean | - |
reverse | Boolean | - |
Returns the position of any component that is inside the recycler component.
Name | Type(s) | Def. value |
---|---|---|
with | - | |
component | Component | - |
* | Number | - |
Notifies the component that the linked list has changed.When notified, the component will be visibly updated.
Name | Type(s) | Def. value |
---|---|---|
with | - |
Notifies the component that only an item in the linked list has changed.When notified, the component will visibly update that item (if it is visible on screen)
Name | Type(s) | Def. value |
---|---|---|
with | - | |
position | Number | - |
Notifies the component that an item was inserted into the linked list, the result will be visibly reflected.
Name | Type(s) | Def. value |
---|---|---|
with | - | |
position | Number | - |
Notifies the component that an item was removed from the linked list, the result will be visibly reflected.
Name | Type(s) | Def. value |
---|---|---|
with | - | |
position | Number | - |
Causes the component to quickly scroll to the specified position.
Name | Type(s) | Def. value |
---|---|---|
with | - | |
position | Number | - |
It establishes the procedure in charge of carrying out the task of comparing the content of each item in the list.
contentComparator: Procedure Name
The parameters of the procedure must be the following:
id (ID of the RecyclerView required by the procedure) oldItem: Previous item to be compared newItem: New item to be compared
Text | Type(s) | Def. value |
---|---|---|
with | - | |
contentComparator | Text | - |
Sets a component to display when the recycler component is empty.
Params
Name | Type(s) |
---|---|
with | |
component | Component |
Specifies whether the size of the component is dependent on the size of each item. With FixedSize enabled, the component will think all visible objects are of the same size and therefore the size (width or height) of the component will not be affected. This feature is not mandatory but using it will improve the fluidity of the widget.
Name | Type(s) | Def. value |
---|---|---|
with | - | |
hasFixedSize | Boolean | - |
It establishes the procedure in charge of carrying out the task of comparing each item in the list.
Unlike ContentComparator, the RecyclerView already has an ItemComparator implementation so it doesn't need to be set.
itemComparator: Procedure Name
The parameters of the procedure must be the following:
id (ID of the RecyclerView required by the procedure) oldItem: Previous item to be compared newItem: New item to be compared
Name | Type(s) | Def. value |
---|---|---|
with | - | |
itemComparator | Text | - |
Changes the layout manager of the component.
Name | Type(s) | Def. value |
---|---|---|
with | - | |
layoutManager | - |
Set a procedure that will be notified of the component's scroll change.
scrollChangedListener: procedure name
The parameters of the procedure must be the following:
- id (ID of the component required by the procedure)
- x: The displacement in the X axis (horizontal)
- y: The displacement in the Y axis (vertical)
Name | Type(s) | Def. value |
---|---|---|
with | - | |
scrollChangedListener | Text | - |
Sets a procedure that will be evaluated each time the component's scroll state changes.
scrollStateListener: procedure name
The parameters of the procedure must be the following:
- id (ID of the component required by the procedure)
Scrolling has three states: idle, settling and dragging
Name | Type(s) | Def. value |
---|---|---|
with | - | |
scrollStateListener | Text | - |
Sets a procedure in charge of editing the visible objects.
viewEditor: procedure name
The parameters of the procedure must be the following:
- id (ID of the component required by the procedure)
- position Current Item position
- root Root View of the current item
- viewType The type of view that corresponds to the item
Name | Type(s) | Def. value |
---|---|---|
with | - | |
viewEditor | Text | - |
Sets the procedure in charge of creating each visible object.
viewCreator: procedure name
The parameters of the procedure must be the following:
- id (ID of the component required by the procedure)
- root Root View of the current item
- viewType The type of view that corresponds to the item
Name | Type(s) | Def. value |
---|---|---|
with | - | |
viewCreator | Text | - |
Sets the procedure in charge of providing the visible object types.
viewTypeProvider: procedure name
The parameters of the procedure must be the following:
- id (ID of the component required by the procedure)
- position current item position
Name | Type(s) | Def. value |
---|---|---|
with | - | |
viewTypeProvider | Text | - |
Performs a smooth animated scroll on the RecyclerView until the required position is reached.
Name | Type(s) | Def. value |
---|---|---|
with | - | |
position | Number | - |
Updates the component data.
It is recommended to use it only when the component is to be bound to a new list. On the other hand, if only the list was edited (items inserted or deleted), it is recommended to use NotifyDataSetChanged
Name | Type(s) | Def. value |
---|---|---|
with | - | |
data | List | - |
Enables Diffutils API
Name | Type(s) | Def. value |
---|---|---|
with | - | |
use | Boolean | - |
Last modified 11mo ago