aidymp Well-Known Member Licensed User Longtime User Apr 11, 2016 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Apr 11, 2016 #2 It is possible. ScrollView can scroll horizontally. You will need to change the code to extend horizontally instead of vertically. Upvote 0
It is possible. ScrollView can scroll horizontally. You will need to change the code to extend horizontally instead of vertically.
jmon Well-Known Member Licensed User Longtime User Apr 12, 2016 #3 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")) Upvote 0
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"))
aidymp Well-Known Member Licensed User Longtime User Apr 12, 2016 #4 jmon said: 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")) Click to expand... 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
jmon said: 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")) Click to expand... 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