Search code examples
androidstatusbarandroid-custom-view

building an Android Status Bar like the New York Times app


The New York Times Android application has something like a notification bar at the top.

I suspect this is an included layout with a text view. The thing is that they managed to drag that title down in order to present the top news.

Can anyone give any insight on how to replicate this?

Edit:

Yes the drawer was the solution to my problem nevertheless i needed one as New York time and the default SlidingDrawer are meant to only go bottom to top... so i looked over on St Google and got a nice Custom Componente Sliding Drawer, get some difficult to make it work as i need it but you can follow the case in Layout positioning problem with Custom SlidingDrawer

New York Times Android notification bar


Solution

  • I think what you're looking for is a Sliding Drawer.

    http://developer.android.com/reference/android/widget/SlidingDrawer.html

    edit:

    the link I post is good for the documentation, but might not give a full idea of what is actually happening. A good place to find an example might be here:

    http://techdroid.kbeanie.com/2009/08/android-sliding-drawer-example.html