clvRegions.Initialize(Me, "clvRegions")
clvRegions.DefaultTextBackgroundColor=Colors.Black
pnlRegions.Color=Colors.Black
pnlregions.AddView(clvRegions.AsView, 0, 0, pnlRegions.Width, pnlRegions.Height)
If regionpubs.Size*50dip<100%y-(40+40) Then
pnlRegionPubs.Height=(regionpubs.size)*50dip
Else
pnlRegionPubs.Height=100%y-(40+40)
End If
Public Sub Initialize (vCallback As Object, vEventName As String)
sv.Initialize2(0, "sv")
items.Initialize
panels.Initialize
dividerHeight = 2dip
EventName = vEventName
CallBack = vCallback
' sv.Color = 0xFFD9D7DE 'this sets the dividers color
sv.Color = Colors.Yellow 'this sets the dividers color
Yes, because the line color is the ScrollView color.... but it does mean that my seperator lines will be black then?
Klaus: thanks, I will have a look at that, but it does mean that my seperator lines will be black then?
maybe that panel resize should be added there since you feed the panel dimensions to the class anyway.
Qlogic: You schould do this in the code where you add your elements.
if you have 2 lists with different look/layout you'll have an issue if you use the edit class method
It seems to me that each time the image is drawn, it utilises memory even though the drawings are identical and if the phone has insufficient memory, it force closes.
The images I am using are essentially used as Buttons.
Would it save memory if I placed the image on a Button View rather than an ImageView?
In the list that I am creating, I will have many duplicate images to click on.