Android Question CustomListView Panel Border

Discussion in 'Android Questions' started by rQb, Apr 23, 2015.

  1. rQb

    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
     
  2. mangojack

    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

    Code:
    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: Apr 23, 2015
  3. rQb

    rQb Member Licensed User

    Thanks mj.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice