rjsvieira / floatingMenu

An orbit-like action button
Apache License 2.0
305 stars 42 forks source link

Feature Request: How to prevent the control from dragging and changing position #2

Closed lamiajoyee closed 7 years ago

lamiajoyee commented 7 years ago

It is my requirement to prevent the FloatingMenuButton from being dragged and moved. Is there any easy way to do so other than overriding/propagating touch events?

rjsvieira commented 7 years ago

At the moment, there is no feature that prevents the button from being repositioned. Nonetheless, that can be developed with ease. I will add it to the todo list and implement it as soon as possible. I will inform you when such feature is ready.

lamiajoyee commented 7 years ago

As

that can be developed with ease

I hope it would be implemented ASAP as I am badly in need of this feature

rjsvieira commented 7 years ago

I will try and implement it by the end of the day

rjsvieira commented 7 years ago

Hello @lamiajoyee The new 'anchored' feature has been added. Please check the new xml snippet and documentation on the READ.me file and see if it fits your needs. Thank you for the feature suggestion.

Regards,

rjsvieira commented 7 years ago

Also, I have not yet deployed the new change to a version on jitpack. Are you using/importing the code directly or the 1.0.0 jitpack dependency?

lamiajoyee commented 7 years ago

I am using the 1.0.0 jitpack

rjsvieira commented 7 years ago

I will release the 1.1.0 version with the change later today. Make sure to change the jitpack to 1.1.0

rjsvieira commented 7 years ago

Hello @lamiajoyee The release has been done. You can now try it on 1.1.0 Regards,

lamiajoyee commented 7 years ago

Nice implementation, I am closing the issue