Hello all, i just wanted to see if anyone has seen this issue, is probably not so much an issue, i have a couple of listviews on my current app and i have set a background image on the listviews, but for some reason when there's only a couple of items on the listview the background image only extends as far down as the items, here's a picture to better explain it, as you guys can see the rest of the blank space is color gray, the activity background color is black, so where's this gray color coming from. I already tried setting the background color of the listview to transparent and it still shows the gray color, i'm using a motorola Photon android 2.3.4 version, when i launch the app on the emulator everything seems fine.
I have the same problem with listview on a Motorola Admiral with Android 2.3.5.
It seems that Motorola has overridden the theme for the Listview in Android 2.3.
Here is a link to the issue on Motorola's blog. They present a solution, but I'm not sure how practical it is.
Sub Globals
Dim ListView1 As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
ListView1.Initialize("")
Activity.AddView(ListView1, 0, 0, 100%x, 100%y)
Dim r As Reflector
If r.GetStaticField("android.os.Build$VERSION", "SDK_INT") >= 10 Then
r.Target = ListView1
r.RunMethod4("setOverscrollFooter", Array As Object(Null), _
Array As String("android.graphics.drawable.Drawable"))
End If
End Sub
Thanks Erel, and yes your code worked like a charm, now I noticed another issue, i'm not sure if this can be fixed the same way, but when i scroll up or down on the listview the background image disappears and the listview's background turns black, only if you click on one of the items on the list you can see the background image appear again, do you have any idea on how to fix this?