iOS Question Click Stealer AutocompleteView

Tomas Petrus

Active Member
Licensed User
Longtime User
Hi guys,
I am transforming my app from Android to iOS
Aiming to both of the apps to look as same as posible.

To achieve that I need to use autocomplete inside other panel
but some other click events are then stealing my clicks so I cant select anything from the suggested list because the click is stolen by Click event on the parent panel or on the page...

You can see it in example
 

Tomas Petrus

Active Member
Licensed User
Longtime User
Now if you try to select anything from the list.
Your click is stealed by ClickThief and the event is loged : )
 
Upvote 0

Tomas Petrus

Active Member
Licensed User
Longtime User
and is there any workaround ?
Or do I need to redesign ?
Like do it as a separate page so I will eliminate the click thieves ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
What is the use case for handling the click event of the underneath panel?

Switch to xCustomListView in both your B4A and B4i projects. You will be able to share more code between the platforms.
(I'm not 100% sure that this issue with the underlying touch listener will not affect CLV. You need to test it.)
 
Last edited:
Upvote 0

Tomas Petrus

Active Member
Licensed User
Longtime User
What is the use case for handling the click event of the underneath panel?
In the real app the underneath panel is just semitransparent gray background visible around the main panel. Under which u still see the form, from which the autocomplete was opened. So when u click outside the main panel with autocomplete the panel hides and u are back where u were : )

Switch to xCustomListView in both your B4A and B4i projects. You will be able to share more code between the platforms.
(I'm not 100% sure that this issue with the underlying touch listener will not affect CLV. You need to test it.)
Ok note taken, will try to use it in future updates.
Right now I solved it by disabling the clickThief event and adding cancel button into the PlacesAutocompleteView Class.
Not ideal but its timesaver : )
 
Upvote 0
Top