Guys,
I closed this topic because it was a more than 2 months without any post, when the rule of the forum is after 30 days the topic is automatically closed. And yesterday an user sent a post after those time. I reopened the topic, but if it happens again, just pay attention to this rule.
Hello dear, i need a help. I have two layout. One inside another. And i want to move inside one with top one at same position. But two layout height width is same, that’s why inside one have no touch placement. But if move top one, then only top one is moved. So i try with some block, the block are on below… but when i move, then two layout moved by different position. Demo gif include post. Please give me a solution. Thanks in advanced.
Dear, can you add a block for get current x, y position of registered any component. Please very urgent need. I need to get current x,y position before drag after register. That’s why i need a block for get current x,y position. Thanks in advanced.
You can use this extension:
i am not able to drag cardview
why?
That was a bug with the first release, but it was fixed in the latest version, which version are you using?
send the link of latest version
You will find it in the first post, you can also check the example AIA, which shows an example showing how to use a card view with the extension.
How can I get maximum value of ‘y’ so that I can set it’s position to bottom
Hello,
You can try to use the blocks, it will return the total height of the screen, in pixels, excluding the height of the component you are willing to move:
Hi @Mohamed_Tamer !
I love your extensions and it gives me more posibilities to make great games and apps. I’m working on a game that i mention before on a other post of yours, the post where your introduced us to the “component tools” extension. Both work very great. But i think i have found a little “bug” in the “repositioning tools” extension. When you register a component, it is always being dragged. Not only when you use the event dragging + call “DragComponent” with the X and Y cordinates.
It would be nice if the extension activates dragging only when you use the event “dragging” + call “DragComponent” so you can play a bit with the maxium range of the dragging and it gives the user of the extension more room to code.
Love your work @Mohamed_Tamer ! you make kodular and all the other platforms each time you make a extension a little bit better. Thankyou for that
Hi, can you please add this method to set to bring components forward or backward after dropping
Hello,
I would suggest you to use the Component Tools extensionSetZ
method to deal with components being put over each other, for example, if you set the z position for compnent A to 10, and for component B to 20, component A would go backward component B.
Hi,
I tried dragging a component in a vertical scroll arrangement and it drags but it doesn’t smoothly drag like it does in a vertical arrangement, could you please fix it @Mohamed_Tamer ?
Hi,
Yes, i expect the drags not to be smooth when the component is in s scrollable layout, because of the fact, the scroll would intercept touch events caused from drags, i will work on a bugfix for this.
Thank you @Mohamed_Tamer for your response,
can you please pm me, i tried to PM you but it says currently, you are not accepting PMs
Version 3.0
Changes:
- Changed the dragging mechanism
Now touch events which were being translated into drags, will not be dragged directly, but will require the developer to accept the drag first, this could help in allowing the developers to allow dragging only in case some conditions were met. This behavior can be disabled by enabling theAlwaysAcceptDrags
(Thanks @broekmancompany ) - Registered components are managed by IDs. A new
id
parameter is added for all blocks - The
DragComponent
block now has aduration
parameter - Completely rewritten the extension’s code.
- Migrated To Rush CLI for building the extension ( Thanks @Shreyash )
- Fixes non-smooth dragging when the component’s parent is a scrollable component ( i.e: HorizontalScrollArrangement or VerticalScrollArrangement ) ( Thanks @Soham_Shah )
The extension is now open source:
The extension link has been updated in the first post.
Regards,
Mohamed Tamer
I still get the version 2 extension when i download from the first post