The problem is that SlidingDrawer cannot be located at the top of the screen - it opens only upwards ( see the corresponding question ). So I implemented a simple control myself using the TranslateAnimation program
class MySlidingDrawer extends LinearLayout { public static final int STATE_OPENED = 0; public static final int STATE_CLOSED = 1; private int m_intState; private LinearLayout m_content; private ImageButton m_handle; public MySlidingDrawer(Context context) { super(context); setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); setOrientation(VERTICAL); setGravity(Gravity.CENTER); m_content = new LinearLayout(context);
source share