@@ -0,0 +1,2207 @@
+package material.awesome.android.cyd.com.awesomematerial;%0A%0Aimport android.content.Context;%0Aimport android.graphics.Typeface;%0Aimport android.util.Log;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A%0A/**%0A * Created by daniellevass on 02/04/15.%0A */%0Apublic class DrawableLayoutUtil %7B%0A%0A%0A    private List%3CDrawableLayout%3E possibleLayouts;%0A%0A%0A%0A    private void setUp()%7B%0A        //only do this once if needed%0A%0A        possibleLayouts = new ArrayList%3C%3E();%0A%0A        possibleLayouts.add(new DrawableLayout(0, R.drawable.button_bootstrap_square_default,%0A                R.drawable.button_bootstrap_rounded_default, R.color.md_black_1000));%0A        possibleLayouts.add(new DrawableLayout(1, R.drawable.button_bootstrap_square_primary,%0A                R.drawable.button_bootstrap_rounded_primary, R.color.md_white_1000_transparent90));%0A        possibleLayouts.add(new DrawableLayout(2, R.drawable.button_bootstrap_square_success,%0A                R.drawable.button_bootstrap_rounded_success, R.color.md_white_1000_transparent90));%0A        possibleLayouts.add(new DrawableLayout(3, R.drawable.button_bootstrap_square_info,%0A                R.drawable.button_bootstrap_rounded_info, R.color.md_white_1000_transparent90));%0A        possibleLayouts.add(new DrawableLayout(4, R.drawable.button_bootstrap_square_warning,%0A                R.drawable.button_bootstrap_rounded_warning, R.color.md_white_1000_transparent90));%0A        possibleLayouts.add(new DrawableLayout(5, R.drawable.button_bootstrap_square_danger,%0A                R.drawable.button_bootstrap_rounded_danger, R.color.md_white_1000_transparent90));%0A        possibleLayouts.add(new DrawableLayout(6, R.drawable.button_bootstrap_square_inverse,%0A                R.drawable.button_bootstrap_rounded_inverse, R.color.md_white_1000_transparent90));%0A%0A%0A    %7D%0A%0A%0A    public DrawableLayout findLayoutForEnumNumber(int enumNumber)%7B%0A%0A        if (possibleLayouts == null)%7B%0A            setUp();%0A        %7D%0A%0A%0A        DrawableLayout layout = null;%0A%0A        for(DrawableLayout drawableLayout : possibleLayouts)%7B%0A%0A            if (drawableLayout.getEnumNumber() == enumNumber)%7B%0A                layout = drawableLayout;%0A            %7D%0A%0A        %7D%0A%0A        return layout;%0A%0A    %7D%0A%0A%0A%0A%0A%0A%0A%7D%0A

include a Class for the button background combination