If you do the download right, like you did, without editting the image, you can drag the .png file into a Blocks Editor workspace and AI2 will use the hidden text in the file to recreate the blocks.
I save .png files of all my reusable procedures, by procedure name, to avoid having to recode them in other projects.
I usually use the BeforePicking event to load Elements on the fly.
GotFocus()
Indicates the cursor moved over the ListPicker so it is now possible to click it.
This looks like it is intended for eye candy, to help the user see which component is currently under his finger and help him see if it is okay to click there. For such an event I would temporarily increase font size in that component.
Regarding the Before Picking event, this is most useful for cases when you need to change the available Elements depending on run time factors.
For example, say you sell clothing by mail.
Your order form has these list pickers:
Category (shoes/shirts/pants)
Material (leather/flannel/khaki/suede)
color (red/black/brown/white)
size (depends on item and stock availability)
As the customer Selects from each List Picker going down the list, you need to refill the Elements of each List Picker going down the list to reflect what you sell and what you still have in stock (i.e. size 13 brown leather shoes)
@ABG and @TIMAI2, I could also put down a button and make the listpicker not visible. I could put a setlist1.elements block in it and a calllist1.open block after that. I think it would work in theory, as long as I make its image the one I'm using for the current listpicker, but I don't know for sure. What do you guys think?
Edit: Like this ↓ (the x is because it was a duplicate event handler)
@ABG Both worked fine. I tried out the gotfocus component and the button, and both reset the listpicker to the first list. I am going with the button, just my preference. I haven't really worked with the got focus components yet, but i think they might come in handy for situations like these.
Do you know if the dev. are going to take it out? Because, as others have said,
and it might not be necessarily needed, since androids have updated past that point.
Put a sample of your application here in the aia file. After testing, maybe some better solutions will emerge.
Without seeing what the application is doing, it's hard to give advice. I only saw that you are using list view to change application settings.
Regarding the GotFocus events, I have no news.
My guess is that it's harder politically to take away than to give, though there is a benefit to simplicity in its removal.
@TIMAI2, @Patryk_F, @ABG Sorry for the late reply (I was taking a test). Here is the most current .aia file: InTheNet.aia (36.6 KB)
Any better suggestions?