Facebook notification like Pullable Screen

Can someone point me to some public source where I can see how the portable / drag and drop screen is implemented, for example, the one used in the Facebook application for notifications?

I also saw this template in the Öffi app for DE / AT / CH / BE / UK.

Thanks for any help!

+5
source share
1 answer

This is actually easier than you think - it SlidingDraweris part of the Android SDK. Just identify the layouts that will be used for your pen drawer and your drawer contents, and you're done. From the docs:

<SlidingDrawer
 android:id="@+id/drawer"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:handle="@+id/handle"
 android:content="@+id/content">

  <ImageView
       android:id="@id/handle"
       android:layout_width="88dip"
       android:layout_height="44dip" />

   <GridView
       android:id="@id/content"
       android:layout_width="match_parent"
       android:layout_height="match_parent" />

</SlidingDrawer>
+14
source

All Articles