Android Question ListView items apper from bottom to top

stanks

Active Member
Licensed User
Longtime User
i don't know much about it, but....if arg is true/false then it is not java.lang.int. it is probably java.lang.boolean
so
r.RunMethod2("stackFromBottom", "true", "java.lang.int") should be

B4X:
r.RunMethod2("stackFromBottom", True, "java.lang.boolean")
 
Upvote 0

ronovar

Active Member
Licensed User
Longtime User
i changed it to:

B4X:
Sub BottomAtToItems(lv As ListView)
    Dim r As Reflector
    r.Target = lv
    r.RunMethod2("stackFromBottom", "true", "java.lang.boolean")
End Sub

And i get this error from log:

java.lang.NoSuchMethodException: stackFromBottom [boolean]

So i think that ListView component does not have stackFromBottom API...how can i add it to b4a?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
B4A Listview is a own implementation of a Listview with the possibilities to use two lines and bitmap.
Android Listview does not have this features. Here a item ist just a "onelineitem".

So trying to change a feature of an Android Listview on a B4A Listview will not work.
 
Upvote 0

ronovar

Active Member
Licensed User
Longtime User
Ok i thanks...i get more clear about how ListView is implement.

Can you please suggest me what of ListView replacement i can use to get from bottom to top items?
 
Upvote 0

ronovar

Active Member
Licensed User
Longtime User
Thanks i will nw use 2D array and make items sorted in array backwards (numbers from bottom and top) and then add to ListView Items...and using activity keypress up and down inverse function..if this idea not work i will buy library you mentioned...thanks.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…