B4J Question Horizontal List?

aidymp

Well-Known Member
Licensed User
Longtime User
Hi, I use a custom list view (standard vertical) I really would like it horizontal, is this possible as I cant find anything?

Thanks

Aidy
 

jmon

Well-Known Member
Licensed User
Longtime User
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
you can also set the listview to horizontal orientation:
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ListView.html#orientationProperty

The code should be something like that : (Not tested, requires JavaObject library)
B4X:
dim jolv as JavaObject = lv
jolv.RunMethod("setOrientation", Array("HORIZONTAL"))

Hi @jmon

I just pasted your code directly after where I create a list view and ran the app! now I have a horizontal scrolling list!

Thank you so much!

Aidy
 
Upvote 0
Top