Android Question CustomListView Panel Border

rQb

Member
Licensed User
Hi,

Is there a way to change the thickness and color of the panel borders when used in a CustomListView.

the standard List does not show significant borders between list items but CustomListView with panels showd a thick line separating items.

Im using a galaxy note 3.

Thanks in advance

BR
 

mangojack

Well-Known Member
Licensed User
In the CustomListView class module there is a class Global 'dividerHeight'
In the Initialize Sub for the downloaded example it is set to 2dip .. Change it to 1dip.
The border color is also set here by changing the ScrollView's (sv) color

B4X:
Public Sub Initialize (vCallback As Object, vEventName As String)
   sv.Initialize2(0, "sv")
   items.Initialize
   panels.Initialize
   dividerHeight = 2dip  '@@@  Change to 1dip
   EventName = vEventName
   CallBack = vCallback
   sv.Color = Colors.Red '@@@ this sets the dividers color
 
Last edited:
Top