R ronovar Active Member Licensed User Longtime User Feb 7, 2016 #1 How can i add items from bottom to top? I see that android have api android:stackFromBottom but need to know how to use it in b4a? http://gmariotti.blogspot.hr/2013/07/quick-tips-for-listview-build-layout.html I try to use reflector but i don't know how to call api: Code: Copy Sub BottomAtToItems(lv As ListView) Dim r As Reflector r.Target = lv r.RunMethod2("stackFromBottom", "true", "java.lang.int") End Sub[/SIZE]
How can i add items from bottom to top? I see that android have api android:stackFromBottom but need to know how to use it in b4a? http://gmariotti.blogspot.hr/2013/07/quick-tips-for-listview-build-layout.html I try to use reflector but i don't know how to call api: Code: Copy Sub BottomAtToItems(lv As ListView) Dim r As Reflector r.Target = lv r.RunMethod2("stackFromBottom", "true", "java.lang.int") End Sub[/SIZE]
S stanks Active Member Licensed User Longtime User Feb 8, 2016 #2 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 Code: Copy r.RunMethod2("stackFromBottom", True, "java.lang.boolean") Upvote 0
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 Code: Copy r.RunMethod2("stackFromBottom", True, "java.lang.boolean")
R ronovar Active Member Licensed User Longtime User Feb 8, 2016 #3 i changed it to: Code: Copy 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
i changed it to: Code: Copy 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?
DonManfred Expert Licensed User Longtime User Feb 8, 2016 #4 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
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.
R ronovar Active Member Licensed User Longtime User Feb 8, 2016 #5 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
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?
mangojack Expert Licensed User Longtime User Feb 8, 2016 #7 ronovar said: Can you please suggest me what of ListView replacement i can use to get from bottom to top items? Click to expand... it would appear that the UltimateListView by @Informatix is capable of that .. UtimateListView .... It is not free although. Upvote 0
ronovar said: Can you please suggest me what of ListView replacement i can use to get from bottom to top items? Click to expand... it would appear that the UltimateListView by @Informatix is capable of that .. UtimateListView .... It is not free although.
R ronovar Active Member Licensed User Longtime User Feb 8, 2016 #8 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
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.