Android Question custom list view

Devv

Active Member
Licensed User
Longtime User
Cant put any thing on top of customListVIew

im trying to put a button or a progress bar on top of a customListiew
but the customlistvew is always removing my objects

after doing a small resarch i found out that this is the problem:
B4X:
ReplaceBasePanelWithView(base, sv)

how can i disable that ?
 

klaus

Expert
Licensed User
Longtime User
Directly you can't.
ReplaceBasePanelWithView(base, sv) replaces the base Panel by a ScrollView and you cannot add a view onto a ScrollView only in its internal Panel, but that's not what you want.
So you need to modify the CustonListView Class code.
You could keep the base Panel and instead of replacing it by the ScrollView you could add the ScrollView onto the base Panel and add your views onto the base Panel.
 
Upvote 0

Devv

Active Member
Licensed User
Longtime User
Directly you can't.
ReplaceBasePanelWithView(base, sv) replaces the base Panel by a ScrollView and you cannot add a view onto a ScrollView only in its internal Panel, but that's not what you want.
So you need to modify the CustonListView Class code.
You could keep the base Panel and instead of replacing it by the ScrollView you could add the ScrollView onto the base Panel and add your views onto the base Panel.
can you explain more please , i still don't know how to solve the problem
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Before I look deeper into your problem.
Where exactly do you want the button or the progress bar ?
Adding a button onto the CustomListView would need to add also the Button_Click event in the Class.
Another solution would be to add a transparent Panel over the CustomListView with the button or the progress bar.
That way you don't need to modify the CustomListView Class code.
 
Upvote 0
Top