Midimaster Active Member Licensed User Oct 5, 2020 #1 I need a view like a list, where I can add and remove a various number of elements at runtime. The elements should be able to swap their positions slowly. Therefore I used a ScrollView on B4A, added 3-20 labels and 1 green (edit-)panel at runtime and moved them very awesome up and down. But in B4J it looks like I cannot add panes or label to a ScrollView neither in the designer nor at rumtime... So what is it good for? When I use a ListView I can add elements very easy. But now there is no way to move the positions smoothely any more. What would be a similar solution for B4J?
I need a view like a list, where I can add and remove a various number of elements at runtime. The elements should be able to swap their positions slowly. Therefore I used a ScrollView on B4A, added 3-20 labels and 1 green (edit-)panel at runtime and moved them very awesome up and down. But in B4J it looks like I cannot add panes or label to a ScrollView neither in the designer nor at rumtime... So what is it good for? When I use a ListView I can add elements very easy. But now there is no way to move the positions smoothely any more. What would be a similar solution for B4J?
DonManfred Expert Licensed User Longtime User Oct 5, 2020 #2 Midimaster said: What would be a similar solution for B4J? Click to expand... For sure using xCustomListview instead of Scrollview. I never would use Scrollview Upvote 0
Midimaster said: What would be a similar solution for B4J? Click to expand... For sure using xCustomListview instead of Scrollview. I never would use Scrollview
Midimaster Active Member Licensed User Oct 5, 2020 #3 but also xCustomListView does not offer, what I need, or? Upvote 0
klaus Expert Licensed User Longtime User Oct 5, 2020 #4 Midimaster said: But in B4J it looks like I cannot add panes or label to a ScrollView neither in the designer nor at rumtime. Click to expand... You can! In B4J the ScrollView is called ScrollPane, and the InnerPanel is called InnerNode. The B4J ScrollPane is bi-directional. Or you could declare the ScrollView and the ScrollPane as B4XViews then you can use same code for both platforms. Anyway, it is worth looking at xCustomListView. Upvote 0
Midimaster said: But in B4J it looks like I cannot add panes or label to a ScrollView neither in the designer nor at rumtime. Click to expand... You can! In B4J the ScrollView is called ScrollPane, and the InnerPanel is called InnerNode. The B4J ScrollPane is bi-directional. Or you could declare the ScrollView and the ScrollPane as B4XViews then you can use same code for both platforms. Anyway, it is worth looking at xCustomListView.
Midimaster Active Member Licensed User Oct 5, 2020 #5 I cannot see, how I could swap objects with animated movings on a xcustomListView. Do you know a tutorial forr this? Upvote 0
I cannot see, how I could swap objects with animated movings on a xcustomListView. Do you know a tutorial forr this?
klaus Expert Licensed User Longtime User Oct 5, 2020 #6 No, I haven't any tutorial for this. Maybe THIS could inspire you, it is not what you want but you may have a look at it to see how it is done. Upvote 0
No, I haven't any tutorial for this. Maybe THIS could inspire you, it is not what you want but you may have a look at it to see how it is done.
Midimaster Active Member Licensed User Oct 5, 2020 #7 thanks a lot. i found something similar https://www.b4x.com/android/forum/threads/class-clvdragger-drag-to-reorder-items.104261/#content and try to play around with it now.... reporting back Upvote 0
thanks a lot. i found something similar https://www.b4x.com/android/forum/threads/class-clvdragger-drag-to-reorder-items.104261/#content and try to play around with it now.... reporting back