I use in my project a standard SlidingDrawer for the panel SlidingDrawer from the top / bottom.

 <SlidingDrawer android:layout_width="300dp" android:layout_height="match_parent" android:layout_gravity="center_horizontal" android:content="@+id/persinfo" android:handle="@+id/bookmark" android:orientation="vertical"> <include android:id="@+id/persinfo" layout="@layout/pers_menu" /> <FrameLayout android:id="@+id/bookmark" android:layout_width="match_parent" android:layout_height="wrap_content" android:rotation="180"> ... </FrameLayout> </SlidingDrawer> 

How to adjust the dimming of the main activity when extending the panel?

I tried to insert a Layout with a black transparent background , which in the case of extension became visible, but there was a too sharp color change. And you need a gradual (depending on the% put forward)

And one more question. SlidingDrawer is considered obsolete, but what came to replace it (so that you can pull it up / down)?

    1 answer 1

    DrawerLayout replaced SlidingDrawer . For DrawerLayout there are no "Gravity.BOTTOM" or "Gravity.TOP" values

    But you can also try it, it can help https://github.com/umano/AndroidSlidingUpPanel

    • Yes, DrawerLayout cannot be done from above (or below). And SlidingUpPanel tried, there is another problem - you can not set an indent around the edges (so that part of the activity is visible). Anyway, thanks. Apparently, there are not so many alternatives. - Jarvis_J
    • Please try to publish detailed answers containing a specific example of the minimum solution, supplementing them with a link to the source. Answers –references (as well as comments) do not add knowledge to the Runet. - Nicolas Chabanovsky