Skip to content
Mr. Alfonz is here to help you build your Android app, make the development process easier and avoid boilerplate code.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
alfonz-adapter Reformat code with K&R code style Jun 25, 2018
alfonz-arch Reformat code with K&R code style Jun 25, 2018
alfonz-graphics
alfonz-media
alfonz-rest
alfonz-rx
alfonz-utility Reformat code with K&R code style Jun 25, 2018
alfonz-view Reformat code with K&R code style Jun 25, 2018
extras/graphics
gradle/wrapper Update dependencies May 24, 2018
samples
.gitignore
CHANGELOG.md
README.md
bintray.gradle
build.gradle Prepare for release Jun 29, 2018
gradle.properties
gradlew Migrate to Android plugin for Gradle 3.0.1 Dec 11, 2017
gradlew.bat
install.gradle
settings.gradle
utils.gradle Reformat code with K&R code style Jun 25, 2018

README.md

Alfonz

Mr. Alfonz is here to help you build your Android app, make the development process easier and avoid boilerplate code.

When I develop Android apps, I often repeat the same code. I use the same utilities or helper classes. I decided to pack these classes into a library and that's how Alfonz was born. Alfonz's grandpa is my collection of templates and utilities.

Alfonz is a multi purpose library split into small modules (something like Android Support Library). Some of them depend on other modules or 3rd party libraries (RxJava, Retrofit, OkHttp), but in general I try to keep Alfonz simple and independent from other libs as much as possible. Alfonz is written in Java, but it's fully compatible with Kotlin as well.

Alfonz logo

Modules

  • adapter - generic adapters for RecyclerView or ViewPager with data binding support
  • arch - base classes for MVVM architecture (based on Architecture Components)
  • graphics - utilities for working with bitmaps and drawables
  • media - utilities for working with images, sounds and videos
  • rest - helper classes for managing REST API calls
  • rx - helper classes for managing RxJava observables and subscriptions
  • utility - bunch of miscellaneous utilities
  • view - collection of custom views and layouts

Samples

Samples can be found in the samples app module. You can also check Stocks project - experimental Android app with MVVM architecture. It uses most of the Alfonz's modules.

Download

implementation "org.alfonz:alfonz-adapter:0.9.0"
implementation "org.alfonz:alfonz-arch:0.9.0"
implementation "org.alfonz:alfonz-graphics:0.9.0"
implementation "org.alfonz:alfonz-media:0.9.0"
implementation "org.alfonz:alfonz-rest:0.9.0"
implementation "org.alfonz:alfonz-rx:0.9.0"
implementation "org.alfonz:alfonz-utility:0.9.0"
implementation "org.alfonz:alfonz-view:0.9.0"

Artifacts are available in JCenter repository. Alfonz requires at minimum Android 4.1 (API level 16).

Developed by

Petr Nohejl
Tomáš Mlynarič

License

Copyright 2016 Petr Nohejl
Copyright 2016 Tomáš Mlynarič

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.