All new gestures, slide returns, global slide returns all OUT !, Global out
Preface
Android quick development framework-ZBLibrary recently changed the previous global slide return gesture featureSlide gesture at the bottom left and right.
Why? To solve the problem of sliding return gesture.
Currently, there are three sliding return gestures.
I. slide back
App: (belt and manual painting)
Problem:
If the screen size exceeds a certain size (based on the normal palm size and finger length, the maximum size is 4.7), the user's right finger cannot reach the left sliding gesture trigger area.
Even if it is barely enough, the failure rate is very high, and the user does not want to use it after several failures.
2. Global Right-sliding return
App: Cool dog music (with and manual painting), QQ (without and manual painting)
Problem:
1. Conflict with the gesture of sliding the tab to the right
The following cool-dog music library interface and QQ add interface are used to avoid conflicts without sliding the tab between left and right.
2. Conflict with the gesture of dragging the webpage to the right
If the content width exceeds the screen width, you can slide to the right to drag a webpage or photo, but the page is closed.
So codoy jumps to such a webpage and calls an out-of-App Browser. QQ uses an embedded QQ browser. However, slide return is not supported on all webpage interfaces.
3. Sliding gesture at the bottom
App: quick access address book
In fact, this method not only slides back to the right, but also slides forward to the left (the effect is equivalent to clicking the button in the upper right corner ).
And solved all the above problems perfectly! For example, on the tab page below, switch between the left and right tabs, and move the left and right tabs on the bottom to "back" and "all" corresponding to the navigation bar ".
Next, slide between left and right to switch the user guide interface, and slide right at the bottom to return to the previous interface.
ZBLibrary is also enhancedSlide gesture at the bottom left and rightFor example, you can move the bottom of the built-in browser interface to the left to move forward, the bottom to the Right to slide back (on the home page, directly return to the previous interface ).
Someone may ask: Isn't it the same as global right-sliding return?
Logically speaking, it is indeed a conflict, but in terms of usage, it is not a conflict:
Users usually place their fingers in the middle. Since they can directly slide the tab and drag the webpage, they will not move their fingers to the bottom of the screen.
If you move your finger to the left and right of the bottom, you must slide right to "return" or "forward.
How to add ZBLibrary bottom sliding gesture
1. Download, import, and dependency on ZBLibrary
Click the link on the right to view http://my.oschina.net/u/2437072/blog/665241
2. Create an Activity and extends BaseActivity and implements OnBottomDragListener
3. setContentView (layoutResId, this );
4. Override the onDragBottom Method
To achieve the operation of Sliding between the left and right sides of the bottom. Here is the right slide back, left slide add list. The onDragBottom method is called in the onClick event corresponding to the buttons on the left and right of the navigation bar.
Okay.
If you are too reluctant to perform the steps 2-4, copy, paste, and rename DemoActivity. java in ZBLibrary, and change the code!
Download trial
Quick messaging .apk
ZBLibraryDemoApp.apk
Download source code (Welcome to Star, welcome to Fork)
Https://github.com/TommyLemon/Android-ZBLibrary