0

I would like to know if this kind of layout is supported under Android and what is its name.

The description: the application is revealed by default in a main view and a menu will appear when making a "swipe gesture" from the margins to the center of the screen; usually this layout has to offer some kind of callback or manage to stop the underlaying activity for the application so the user can use the menu without interfering with what he is doing with the application itself.

enter image description here

Thanks.

axis
  • 874
  • 2
  • 7
  • 13

2 Answers2

1

There is no built in functionality for this behavior. You'll need to make it yourself.

CaseyB
  • 24,780
  • 14
  • 77
  • 112
  • There are a couple of third-party libraries for this sort of "ribbon", though I don't have any links handy at the moment. – CommonsWare Oct 03 '12 at 19:04
1

If you are looking for a sliding layout, here is an example:

you can call it with:

<com.slidingmenu.lib.SlidingMenu
    xmlns:sliding="http://schemas.android.com/apk/res-auto"
    android:id="@+id/slidingmenulayout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    sliding:viewAbove="@layout/YOUR_ABOVE_VIEW"
    sliding:viewBehind="@layout/YOUR_BEHIND_BEHIND"
    sliding:touchModeAbove="margin|fullscreen"
    sliding:touchModeBehind="margin|fullscreen"
    sliding:behindOffset="@dimen/YOUR_OFFSET"
    sliding:behindWidth="@dimen/YOUR_WIDTH"
    sliding:behindScrollScale="@dimen/YOUR_SCALE"
    sliding:shadowDrawable="@drawable/YOUR_SHADOW"
    sliding:shadowWidth="@dimen/YOUR_SHADOW_WIDTH" />

There is no built in function like that, so you have to use third party libraries

Ahmad
  • 69,608
  • 17
  • 111
  • 137