Thank you very much! You did an amazing work! This extension is super!
So many possibilities. It is working great. And best of all : it’s completely free! I love it!
Thanks very much
Hello every one ,
Version 2.0 is now out
Thanks every one for your suggestions.I tried to consider it all in this update.If i missed to add any thing please tell me
Actually i thought some time how to achieve gesture events in real-time without adding loads of code and blocks.Actually, i ended with only two blocks.
It only have one touched block. It have a parameter its name is action.It covers almost every valid action.Even clicks.Doable clicks can be detected by comparing the times that the touch event ACTION_UP and then ACTION_DOWN has been called.Long click can be detected by the time of the event. Also you can know how many thumbs clicked.And knowing coordinates of every thumb.And the click event.Also i considered @WatermelonIce, @ADDYLIN and @nandu_aeer voting’s.In a future update i will add the ability of setting a listener that detects touches in any place on the screen.
New blocks:
The extension have 4 new blocks. Based on your suggestions.
RegisterComponent
Register component so the extension can detect touches on it.
Component ~ Component
Touched
This event is triggerred when a component is touched.The action is returned in the action parameter.
Component ~ Component ( the component which is clicked )
info~ String ( A detailed info about the touch in json format )
x~ int ( X positions of the first touch place )
y~ int ( Y positions of the first touch place )
action ~ String ( Action name of the action occurred.)
Thanks for @Zia_Choudhary and @themaayur
Valid action types
ACTION_BUTTON_PRESS
ACTION_BUTTON_RELEASE
ACTION_CANCEL
ACTION_DOWN
ACTION_HOVER_ENTER
ACTION_HOVER_EXIT
ACTION_HOVER_MOVE
int
ACTION_MASK
int
ACTION_MOVE
ACTION_OUTSIDE
ACTION_POINTER_DOWN
ACTION_POINTER_INDEX_MASK
ACTION_POINTER_INDEX_SHIFT
ACTION_POINTER_UP
ACTION_SCROLL
ACTION_UP
SetZ
Sets the Z position of any component you want.
Component ~ Component
z ~ int
Thanks for @broekmancompany
GetZ
Gets the Z position of any component you want.
Component ~ Component
Thanks for @broekmancompany
Bug fixed
Only small bug with the extension icon.
Download link
io.mohamed.ComponentTools.aix (19.8 KB) (V2)
First post will be updated now
Usage Examples:
First post will be updated also:
Real-time update And multiple thumb support:
The long text above is the info parameter in the touched event.
Test AIA: RealtimeTest (3).aia (22.3 KB)
Test APK: RealtimeTest (4).apk (5.0 MB)
Quick update
I love night updates
Actually, i found some small bugs in the new update.So i considered fixing now and not waiting for tomorrow.
Version : 2.1
Bugs fixed:
1- x and y parameters was returning an int of only the first x position and y position.So if we have 2 thumbs only the first thumb position will be returned.Now it returns a list of all of the x and why positions.
2- Touch event wasn’t called on perform click and perform long click methods.Now it will be called with the component and the action and also the thumb number.But some values will be empty list like x,y or 0 like event time.
Download link
io.mohamed.ComponentTools.aix (20.6 KB) ( V2.1 )
Did you update the link in the first post too? Just checking so there’s isn’t an outdated link in the thread.
Great, you are just crazy.
You updated your extension 2 times in night when I was in a deep sleep and probably a good dream
No words to explain your enthusiasm, spirit and craze of development
In our native language we used to express our feelings in such cases by saying… Uffff
So uffff
Can i suggest:
1 That you put the video in the first post ?
2 Upload aia file (and not ais, if the extension not are upload to the proyect when import the screen (ais) an error occurs, it’s just to avoid problems)
Thanks @themaayur
Thanks very much @Zia_Choudhary
Thanks for you suggestions @bestprintsf
1- Already added.
2- Ok i will upload a test aia.That happened because of i’m not testing in screen1 of the project.
First thanks for you reply !!!
You can post say that the demo of your extension is on the screen 2/3/4 !!!
I wait for the next extension that you have promised !!!
I created a new aia and i will post it now.As i don’t want to conflict anyone.
Ofc, i already finished half of it.
You are the best man!! Very nice update, Z-index works great!
I tried some other features, but there was a small thing.
“moveHorizontally” works like “moveVertically” and “moveVertically” works like “moveHorizontally”
The names are just at the wrong feature that’s all
Thanks for reporting.I add an update now which this is one of the bugs that fixed in.
Thanks very much
Sorry but i like this extension
Thanks very much
Why sorry
Hi problem in move vertically and horizontally block for me when I set component move to vertically its moving horizontal pls check
Thanks for reporting! This problem i’m aware from and already fixed.There’s just a really hard bug occuringnow .I’m working for fixing it.