Collection of custom views or widgets that I use in my apps. Could be useful for others too.
- Add the jitpack repo in root level
build.gradle
if not already.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the library dependency in app level
build.gradle
.
dependencies {
implementation 'com.github.corphish:widgets-ktx:0.4.0'
}
- Views - Various commonly used views wrapped for easy use.
- RecyclerView adapters - Working with RecyclerView is now easier than ever as these classes eliminates the needs for creating separate adapter classes.
- RecyclerView ViewHolders - Let's you define a ViewHolder in one line, once again eliminating the need for creating separate classes for ViewHolders.