My first open-source component: a shortcut menu button

Source: Internet
Author: User

Recently, I saw a shortcut menu button, which is a button that pops up several buttons around it, side by side on the circumference. Then, press the button at the center of the circle to remove the pop-up button.


I think the improvements here are:

1. A button appears at first, which occupies a certain place.

2. When the user gives up the operation, the user needs to click the button again to reclaim the pop-up button. This action is redundant.


I think it is of great value to streamline an action and take less of a place, so the shortcut buttons I designed are:

1. Do not occupy any space at ordinary times. Call it through gestures.

2. When you discard an operation, you do not need to perform the operation. In this way, the user action is minimal.


During the operation, a row of menu buttons is taken out with one finger. If the user's finger does not leave the screen, the button remains unchanged. At this moment, the user can think about pressing that button. After the user's finger is released, the button remains for one second for the user to operate. If the user chooses to discard the operation, the button will automatically disappear after one second. In this way, user operations are perhaps the least convenient.


The final screen recording effect is as follows:


Source code put in: https://github.com/maxyou/gesturebutton

The code is very simple and easy to modify and expand. For the implementation method, see the source code of GestureOverlayView.

Thank you for your criticism.



Zookeeper

My first open-source component: a shortcut menu button

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.