Divider Lines in Listview

Christian

Member
Licensed User
Longtime User
Hi Erel,

when I use a listview of medium width, the divider lines in the middle of each line are thicker in the center than on the left or right side. This effect is shown on the attached image.

To demonstrate this effect dynamically, the following code will show a listview, where the width of the listview can be altered with a seekbar.

My device is HTC Wildfire with Android 2.2 Version.

Do you see this effect on your device (devices) as well and is there a way of having divider lines of equal strenth?

Best regards


B4X:
Sub Globals
   Dim lv As ListView
   Dim sb As SeekBar
End Sub

Sub Activity_Create(FirstTime As Boolean)
   Activity.Color=Colors.Blue
   
   lv.Initialize("")
   Activity.AddView(lv,10%x,10%y,80%x,50%y)
   lv.Color=Colors.Black
   lv.AddSingleLine("1")
   lv.AddSingleLine("2")
   lv.AddSingleLine("3")
   
   sb.Initialize("sb")
   Activity.AddView(sb,10%x,80%y,80%x,10%y)
   sb.Max=200
   sb.Value=100
End Sub

Sub sb_ValueChanged (Value As Int, UserChanged As Boolean)
   lv.Width=sb.Value
End Sub
 

Attachments

  • device.jpg
    device.jpg
    6.5 KB · Views: 485
Top