It appears that the overscroll image of listviews can be changed using the 'setOverscrollHeader' and 'setOverscrollFooter' methods. Both supposedly expect a 'Drawable' as a parameter.
I have tried the following with reflector (very n00b on this subject ):
first off b4a give me a warning #7 - Pbject converted to string??
and I get an error on compile
I tried passing a drawable but b4a converts it to a string. Any tips on where I am going wrong.
Thanks
I have tried the following with reflector (very n00b on this subject ):
B4X:
r.Target = lv 'a listview
r.RunMethod2("setOverScrollMode", 0, "java.lang.int" )
r.RunMethod2("setOverscrollHeader", res.GetAndroidDrawable("my_overscoll_glow"), "android.graphics.drawable.Drawable")
first off b4a give me a warning #7 - Pbject converted to string??
and I get an error on compile
java.lang.IllegalArgumentException: argument 1 should have type android.graphics.drawable.Drawable, got java.lang.String
I tried passing a drawable but b4a converts it to a string. Any tips on where I am going wrong.
Thanks