Android Question [solved] What is the correct way to set DividerHorizontal on Amir_RecyclerView?

fredo

Well-Known Member
Licensed User
Longtime User
For the Amir_RecyclerView the correct method is searched for to set the height and color of the horizontal divider.

2019-01-08_09-11-00.jpg

For example, to create a 40dip distance between the parent panels in yellow, the following code was tested without success:

B4X:
Recycler.Initializer("Amir").ListView.Build
Recycler.DividerHorizontal.Color(Colors.Yellow).Margin(10dip).Size(40dip)
Activity.AddView(Recycler, 0, 0, 100%x, 100%y)
Was "DividerHorizontal" used incorrectly, or is something still missing?

(Testproject attached)
 

Attachments

  • amir_rv_dividertest.zip
    8.6 KB · Views: 170
Top