This set of general purpose utilities and base classes is used throughout the various projects we do at stanwood.
The stanwood Core Framework is hosted on JitPack. Therefore you can simply import the modules by adding
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
to your project's build.gradle
.
Then add this to you app's build.gradle
:
dependencies {
// aar version available as well
implementation 'com.github.stanwood.Core_Framework_android:framework-base:<insert latest version here>'
implementation 'com.github.stanwood.Core_Framework_android:framework-ui:<insert latest version here>'
implementation 'com.github.stanwood.Core_Framework_android:framework-databinding:<insert latest version here>'
}
There are three modules: UI, data binding and general purpose (base) classes. All can be imported separately.
This module contains a collection of general purpose classes like an IntentCreator
for common actions, or a helper class for hiding the on-screen keyboard.
The UI module mostly contains ViewGroups for easy View composition and positioning.
Currently the Databinding module mostly contains classes for performing data binding with RecyclerView
s and ViewPager
s. You can find appropriate adapters as well as ViewHolder
s here.