For sliding ACTION_MOVE is useful.For fling I think it can be done using the pointer count variable, you can find all of the actions here:
On Component put x put y did not use duration of moving ā¦i need that
I didnāt understand you Do you mean to have a parameter to set the duration of the component movement when using SetX
and SetY
blocks?
with This extension Can make Slider
My extension Repositioning Tools would be more helpful, but it would need an update to limit the dragging area , another good solution
Yes like thatā¦ because move x y in component tool its relative and put x put y it absolute i iwant absolute but have property duration movement
Since you want a new block like this:
So itās already available in the next update
Thank you
Is it possible to support absolute x,y position? X and Y coords are dependent on position in arrangement instead of whole screen.
For which block exactly you would like the absolute X,Y support ( i.e: the getX
, getY
block, the touched event X and Y parameters)
Get X and Y block. It would help me to get work with custom floating movable buttons and place them correctly according to my template
Itās hard to calculate it with CardViews, cause the CardView elevation is unpredictible and i lose some pixels in āmanualā calculations.
Thanks for the fast answer!
Thanks for your suggestion ! I will be adding a new GetAbsoluteX
and GetAbsoluteY
for the next update.
I have some question? Can I pm you? I would like to know if it is possible to create a movable component without placing it in specific place or arrangement on the screen. FAB is a great example. But it canāt be make movable. FAB doesnāt need any location to be created.
The problem is: to make a movable component it has to be placed in any arrangement on the screen. Dragging the component doesnāt delete the area to which the component belongs. Empty useless space is created. It takes a lot of combinations to make components like these outside the visible screen area and to make the screen fixed with the possibility to auto size.
Your extension work great with dynamic components, cause it allow to manipulate overlaying easily with the help of āmove componentā in dynamic comp. extension. Could you also add overlaying settings?
When next update lounce?
Can you add onTouchdown and onTouchup , onLongclick ,set fullclickable ,onLongclick,set Longclick
The touched event do that, the action would be ACTION_DOWN
or ACTION_MOVE
when touching down and ACTION_UP
on touch up.
Thanks for your suggestion, I added them in the next update
Thanks
Amazing extension. Very powerful. Together with your second extension, it offers great opportunities.
I had a little fun with the extension. It is a pity that you cannot unregister a registered component.
The CustomPath method isnāt working as I thought. It just lets the component jump to the new position instead of moving to it. No matter what value you set as duration.
From your aia:
So this method seems useless as you can also archieve this position-jump via your SetX,Y methods.
Is this a bug? I am using v3.
on Android 7.0.