Android Arsenal

The purpose of this library is to provide an easy way to implement some of the the eye-candy lists/cards/and some other widgets Google demonstrates on the Material Design Guidelines. Checkout some of the features below.


The goal was to mimic the lists (and Grids) shown at Google's Material Design guidelines (or hybrids of them) with just a few lines of code:

ListAdapter mAdapter = new ListAdapter(){
    //Use GridAdapter if you need a grid (or an hybrid)
    public String getSubHeaderText(int i) {/*If you have subheaders, text'd go here*/}

    public int getNumItems(){/*Number of list items go here*/}

    public void bindDataToListItem(int i, View view, ImageView imageView, ImageButton
            imageButton, TextView... textViews) {
        //Here you actually compose the list item
        //i is the index
        //view is the item's view
        //imageView is an image (the one at the left)
        //imageButton same (at the right)
        //textViews are the textfields, from top to bottom, left to right
        //These will depend on the method below

    public ListItemType getListItemDataType(int i) {/*return the list item at index i's type*/}

Also you can:


| | |


It's basically a fragment with a RecyclerView. Just extend this class, override onViewCreated, and then you can access these methods (even if you don't use this library's adapters):


Instead of playing with AlertDialog.Builder class each time you need a dialog...


The intent is to create a Card like the ones at Google's MD guidelines with just a few lines (and not having to create layout files)

Check the demo project for a complete sample on how to use the CardBuilder. The result is this:

| | | | |

Proportional Image View

Self-explanatory, can restrict an image to 16:9, 4:3, 1:1 or just be like a regular ImageView

View Utils

Transforms plenty of methods (some that usually require checking the sdk version, not null, etc) to a single line method call.

Use it in your project

In your project's root build.gradle, add maven { url "" } at the end of repositories:

allprojects {
        repositories {
            maven { url "" }

Then, in your module's build.gradle, add compile 'com.github.alexive:visual-goodies:-SNAPSHOT' to the dependencies:

dependencies {
        compile 'com.github.alexive:visual-goodies:-SNAPSHOT'

I'll be updating this repo often (usually bug fixes) so, if you want, tell gradle to check for a new version at every build. Add to your module's build.gradle:

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'


Any suggestions (and contributions) will be greatly appreciated. The same thing goes for any bugs you find. Just file up an issue and I'll look it up ASAP.

Demo project

If you want to try the demo project, just clone the repo, uncomment the project's root settings.gradle and you can go from there. In a one-liner:

git clone && cd visual-goodies && echo "include ':library', ':demo'" > settings.gradle

Then open the project on Android Studio and run the demo module

Apps that use this library

None yet! If your use it in your app, feel free to open up an issue and i'll just mention it here

Why I did this

After learning to code and doing a few Android apps just for me to learn, I found myself writing the same code over and over again. Then, in college, I realized I could reuse the code, so I decided to move the repeated parts onto a separate project tweak it a bit and voilĂ ! This includes list adapters, dialogs, cards, etc

Wishlist (or TODO):


Copyright 2016 J. Alexandre Oliveira

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License