Skip to content

Android library removing boilerplate code and providing helpful utilities.

Notifications You must be signed in to change notification settings

Randomguy01/RandomLibrary

Repository files navigation

Android CI Release

Welcome to RandomLibrary!

This library is a set of utility classes and methods by Randomguy01!

Purpose

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.

Features

Below are descriptions of all current features.

Lifecycle

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.

Network

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.

EventBus (Beta)

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!

Keyboard

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.

Navigation

Utility methods ready-to-use with Android Jetpack Navigation

Design Features

Material Colors

  • 2014 Material Design color palette
  • Common colors

Material Styles

Button

  • Contained
  • Contained with Icon
  • Contained Flat
  • Contained Flat with Icon
  • Outlined
  • Outlined with Icon
  • Text Button
  • Text Button with Icon

FAB

  • FAB
  • FAB: Mini
  • FAB: Extended
  • FAB: Text on Extend

Strings

  • Common words built-in and ready for easy translation

Libraries

Huge thank you to the libraries used in the creation of this project, none of this could exist without them!

Google Guava

Material Design

About

Android library removing boilerplate code and providing helpful utilities.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages