This library is a set of utility classes and methods by Randomguy01!
The goal of this library is to make programming in Android faster and easier and to remove boilerplate code. I hope to make starting a new Android project easier, no need to rewrite code from your last project.
Below are descriptions of all current features.
The Android Lifecycle is super important and really cool, but honestly, I hate dealing with it. The Lifecycle package contains a set of classes to internally deal with the lifecycle and storing and updating data. Extending RandomActivity and creating a PersistableViewHolder will allow you to take advantage of the methods update()
and save()
. update()
is called after an activity has started or restarted and save()
is called before an activity is destroyed. These methods allow you to easily save and retrieve data using a ViewModel.
Managing basic network events and retrieving information about the current network status is not that hard. But it could be easier! Use the NetworkManager class to simplify checking internet connection and listening for changes in the network connection.
Communicating between components of different types can be frustrating and require more effort than you feel like putting in. Save what little effort you have to use RandomEventBus! A singleton for communicating between any component.
Note: This is a BETA!
Working with the Android soft keyboard should be super easy but it's not. It's really weird and you're not sure why anything done was done the way it was done. The previous sentence makes more sense than working with the Android keyboard! Use KeyboardUtilities to simplify your code.
Utility methods ready-to-use with Android Jetpack Navigation
- 2014 Material Design color palette
- Common colors
- Contained
- Contained with Icon
- Contained Flat
- Contained Flat with Icon
- Outlined
- Outlined with Icon
- Text Button
- Text Button with Icon
- FAB
- FAB: Mini
- FAB: Extended
- FAB: Text on Extend
- Common words built-in and ready for easy translation
Huge thank you to the libraries used in the creation of this project, none of this could exist without them!