I need to create a control like an Android notification/Dropdown. It should look like an overlapped screen on all other screens, and when I drag it, it should animate from Top to Bottom like a dropdown, without affecting the backscreen.
Hi @netkeb1,
To implement such UI in MWT, you can probably use the following from our Widgets library:
- OverlapContainer: Container for overlapping widgets, it would contain your main screen as its first element and your notification dropdown as the second element.
- Also, make sure to your Desktop uses an OverlapRenderPolicy so that your backscreen can be updated without drawing over the notifications.
- SwipeEventHandler: event handler for scroll-like widgets. You can look at our Scroll widget example for how to use it. In your case, you probably also want to use the
snapToItem
feature.- Probably, even, you can take the “Secret Scroll” Widgets Example as a starting point.
Don’t hesitate if you need further help on this (such as if you want to implement a specific control behavior on top of SwipeEventHandler).
Best regards,
Rémy