Objective
The Android rapid development Framework-zblibrary recently changed the previous global right-swipe return gesture to the bottom-left swipe gesture .
Why is it? To solve the problem of sliding back gestures.
There are currently 3 types of swipe back gestures
First, slide back
On behalf of the app: (with manual drawing)
Problem:
Screen size beyond a certain size (according to the normal palm size and finger length calculation, the maximum size of 4.7 inches) will cause the user to hold the computer's right hand when the finger can not reach the left swipe gesture trigger area.
Even if it is barely enough, the failure rate is high, and the user does not want to use it after a few failures.
Second, the global right slide back
On behalf of the app: Cool Dog Music (with manual painting), QQ (no manual drawing)
Problem:
1. Swipe to the right to toggle the tab gesture Conflict
The bottom of the Cool Dog Library interface and QQ add interface is to avoid conflict and not left and right swipe to toggle tab gesture.
2. Gestures that conflict with dragging pages to the right
If the content is wider than the screen width, the user slides to the right just to drag the page or photo, but turns off the interface.
So cool dog jump to this page will call the app browser, QQ or embedded QQ browser, but all the Web interface does not support sliding back.
Three, the bottom left and right swipe gestures
On behalf of the app: Quick Contacts
In fact, this method not only slides right back, but also slides "forward" to the left (the effect is equivalent to clicking the top right button).
and solved all the above problems perfectly! For example, below the tab interface, the middle of the left and right sliding tab, the bottom of left and right sliding corresponding navigation bar "back", "all".
Below this is the middle of the left and right slide Switch User Guide interface, bottom swipe to return to the previous interface.
The zblibrary also enhances the function of the bottom left and right swipe gestures , such as the built-in browser interface below that allows you to swipe forward from the bottom to the left, and slide back to the bottom (directly back to the previous screen on the home page).
Someone might ask, "Is this not going to conflict with the global right-slip return?"
It is logically true that it is a conflict, but it does not conflict from the point of view of use:
Users usually put their fingers in the middle, since the direct swipe to switch tab, drag the page, will not move your finger to the bottom of the screen.
So if you move your finger to the bottom of the slide, you're going to want to right-swipe back or left and slide forward.
How to add the bottom left and right swipe gestures in zblibrary
1. Download, import, reliance on Zblibrary
Click on the right link to view http://my.oschina.net/u/2437072/blog/665241
2. Create a new activity and extends baseactivity and implements Onbottomdraglistener
3.setContentView (Layoutresid, this);
4. Overriding the Ondragbottom method
Achieve the bottom left and right sliding corresponding operation. Here is the right slide back, left slide add list. And the Ondragbottom method is called in the Click event onclick corresponding to the left and right buttons of the navigation bar.
All right.
If you don't bother to do 2-4 of these steps, Demoactivity.java copy > Paste > Rename > Change code in Zblibrary!
Download trial
Quick use contacts. apk
zblibrarydemoapp.apk
Download source (Welcome star, welcome Fork)
Https://github.com/TommyLemon/Android-ZBLibrary
New gestures, side-by-side return, global right-slip back all out!