android - How to show the DrawerLayout when sliding from left to right, no matter where? -


background

google has introduced drawerlayout, shows menu on left area of screen when click on "up" button of action bar.

because library isn't supported yet on actionbarsherlock, there way overcome using this project .

it has variants on many apps: currents, gmail, hangouts, youtube...

the question

on "currents" app (and in youtube) , when user slides (most-left) page left right , drawerlayout appears, no matter finger has started touch .

how can achieve same effect? maybe should use onintercepttouchevent ?

there isn't documentation , tutorials of cool things can done , other this link (ok , this one too) . (in part of "give user quick peek") 20dp on left used functionality, can see "currents" work larger area.

it seems library still not quite finished, , layout xml file cannot shown in visual ui editor...


edit: seems library open sourced. code available on :

.../android-sdk\sources\android-18\android\support\v4\widget\drawerlayout.java .../android-sdk\sources\android-18\android\support\v4\widget\slidingpanelayout.java .../android-sdk\sources\android-18\android\support\v4\app\actionbardrawertoggle.java 

now question how make work i've written, work on youtube , allowing customize how looks , allow scrolling it.

slidingmenu best sliding library i've ever found, it's library.
can set getslidingmenu().settouchmodeabove(slidingmenu.touchmode_fullscreen) enabling fling screen.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -