iOS Question new searhview problem

tufanv

Expert
Licensed User
Longtime User
Hello,

I have a little problem with the new searchview. In the older version (1.10) When the list of search results were invisible ( after clicking to an item in the list) the button placed under the list( where the search results are printed) was clickable but now it is not( it is in the back altough there is no list view visible )

I tried to bring the button to front with each searchview_itemclick but this time if the user searchs something again , the button is above the list of searched items. Is there an way to fix it ?

also, in the designer , the searchview has option to be visible or not. But in the ode module i cant set .visible . Do I still need to use a panel to hide the view ?

ty
 
Last edited:

tufanv

Expert
Licensed User
Longtime User
Hello,
Why cant we change the visible of searchview altough with the new version it is a custom view ? I need to hide and show the searchview but i cant manage it without puting it into panel..
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Make et variable public and hide it. You should also hide SearchView.GetBase.
I tried searchview.getbase.visible with no lock can yoju describe how can i use the searchview.getbase to hide it ?
TY
 
Upvote 0

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,
I tried searchview.getbase.visible
Do you have also set et.visible = false ?

you can add the following sub to the SearchView class:
B4X:
'Sets whether the SearchView is visible
Sub SetVisible(Visible As Boolean)
    et.Visible = Visible
    GetBase.Visible = Visible
End Sub

Jan
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…