Hi, I need help to set The Divider in Customlistview. If I select in a design view any colors and set the Height to "1", all customlistview is colored the same color I selected for the divider. Please help!!
please rephrase the question... because you said the solution yourself. in the designer it has the color property that divides the items and also the size of the height line...
I need help to set the divider, because if I set any height of the divider the entire customlistview is colored... I'm posting the example, if you look at divides in the design view is blue and height =2, but I don't want that color for all customlistview....
Thank you so' much!!!!! Now I match the problem that is in the label's background.. If it's transparent ,The customlistview take a color of divider... So' the custumlistview can't have the background that I need??? Is there a solution to do this?
I'm really grateful to you ! Thanks a lot! for your Help and your time!! @mangojack... I have to study another solution because although they are excellent solutions but they don't fully satisfy me... thanks again. The result is not natural as if there is a background....
Hi, I need help to set The Divider in Customlistview. If I select in a design view any colors and set the Height to "1", all customlistview is colored the same color I selected for the divider. Please help!!
@oparra thank you so much! My problem is set the divider and the background of customlistview like the first image "Cattura.PNG" below... the "second_img" is not good for my idea of mobile app... thanks
My example.
I used 2 Labels in the layout of the item:
the first Label contain the text and the second one it's used to make the thin line (a Dirty Trick).
Check carefully the properties of the CustomListView in the Designer.
Hopefully this can be something near what you are searching for, it can be improved or better realized probably.
Why do you want to use this sub to generate the gradient Public Sub SetGradientBackground(pnl As B4XView, Clrs() As Int, Orientation As String), when you can do all of it via the designer. See layout2.bal file attached.
@Mahares because It doesn't work If I use only designview... this is what your layout show (1.1 & 1.2) and this is what I see if I set divider in designview (2.1 & 2.2).... That's the problem.... Maybe I'm wrong anythings...