Android - UI as a sliding notification bar

I want to create an animation panel similar to the notification panel. I want to say that the notification bar is a cool control where you grab and slide the notification bar and see all the notifications.

In fact, I have 2 user interfaces, the first one should be displayed with a button at the top when the user clicks on this button, the second user interface with the list items should move just like the notification bar, and again when the user clicks or drag the second one the user interface is on the top side, then the 2nd user interface should become invisible. I hope I clarified my question.

From , I'm trying to use a sliding box that displays a list of options. I need it to expand on top of the current ListView on the page. Christian answer

So, if anyone knows how to implement such a layout or user interface with sliding animation, please share it.

Please suggest how to build such a control or layout? any ideas or suggestions

Thanx

+3
source share
3 answers

Have you tried the SlidingDrawerwidget?

+10
source

Paresh I found a solution in this article on sliding drawers .

different android widgets implemented it, although it still has some disadvantages, but it will definitely prove to be useful.

SO CommonsWare :

... SlidingDrawer, .

.

+2

You can use SlidingTray: http://aniqroid.sileria.com to make this happen

http://aniqroid.sileria.com/doc/api/com/sileria/android/view/SlidingTray.html

Alternatively, you can also use the native PopupWindow class, which is part of the Android API.

0
source

Source: https://habr.com/ru/post/1788104/


All Articles