Android library for sending and observing non persistent actions such as showing a message
What is AndroidBriefActions?
On Android, in combination with LiveData, ViewModel is more than what it might be on some other platforms. It also represents an architectural component for easy state management across view lifecycle events. When an Activity or Fragment gets recreated, subscribing to observe LiveData gives us the latest value, thus orientation changes are easy to manage. But sometimes this is not desirable. Some state delivered by certain action might be only relevant at the time when the action happened. For instance, navigating to another screen, or displaying a non-persistent message. In these cases we would not want another screen to open again or another message to show again when we rotate the device (value is preserved in LiveData).
BriefAction type represents these actions and in combination with LiveAction, helper observers, ViewModel and the rest of the pattern, enables consuming of such actions only once.
Overview
- Pricing: Free
- Resource Link: https://github.com/vlad-markovic/AndroidBriefActions
- Resource Maker: vlad-markovic
- Mobile Platform Destination: Android Apps
- Mobile Platform Support: Native Android
- Programming Languages: Java
- Gradle: com.vladmarkovic.briefactions:briefactions:$briefActionsVersion
Related resources
VusikView
Android library to make notes drop animation for music players
BlurryModalSegue
A custom modal segue providing a blurred overlay effect
CarLensCollectionViewLayout
An easy-to-use Collection View Layout for card-like animation