Android Question MiniSearchView

Johan Schoeman

Expert
Licensed User
Longtime User
I start a fresh B4A Activity project and select MiniSearchView in the libs tab, add the customview to the layout and when I compile i get:

B4A Activity Project:
Unknown member: add
Unknown member: clear
Unknown member: initialize
Unknown type: b4xset<br />Are you missing a library reference?
Undeclared variable 'allitems' is used before it was assigned any value.
Undeclared variable 'allitems' is used before it was assigned any value.
Undeclared variable 'allitems' is used before it was assigned any value.
Undeclared variable 'allitems' is used before it was assigned any value.
Unknown type: b4xset<br />Are you missing a library reference?
Main - 23: Variable 'MiniSearchView1' is never assigned any value. (warning #10)

Other libs selected is Core and XUI

I also see in the @Erel's sample project that in the designer there is a Visible property but cannot access the visible property via code.

Please advise....

Thanks

JS
 

Johan Schoeman

Expert
Licensed User
Longtime User
Add a reference to B4XCollections.

With most custom views, you can access view.mBase which is the containing panel and hide it, or move it.
Perfect! Thanks Erel. All working now.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…