Been around this forum for a little while, first I want to thank to all members, for i've learned a lot from reading your posts.
Now, the question that finally pushed me to write: I have a project that make use of a ListView, as per Contacts Search example. I want to resize the embedded scrollview to match the screen with or without the virtual keyboard showing.
I have added the view with
sv.AddToParent(Activity, 0, 0, 95%x, 80%y) and tried to resize it with
sv.height at no avail.
Hi Thader.
I'm really sorry, I asked for help on a ListView while I'm using a SearchView.. :S
As for your response, Thats exactly what I'm trying to do, except than SearchView doesnt accept .height
You can add a panel to the activity and then add the searchview to the panel and change the panel height that way.
B4X:
Dim sv As SearchView
Dim MyPanel As Panel
MyPanel.Initialize("")
Activity.AddView(MyPanel,0,0,95%x,80%y)
MyPanel.Color=Colors.Cyan
sv.Initialize(Me, "sv")
sv.AddToParent(MyPanel, 0, 0, 60%x, 60%y)