Skip to content
Werner Kunze edited this page Apr 10, 2022 · 14 revisions

Stand With Ukraine

Welcome to the Android-Bootstrap wiki!

Quick Start

Add the following dependency to your build.gradle:

dependencies {
   compile 'com.beardedhen:androidbootstrap:2.0.1'
}

You should also override your application class with the following:

public class SampleApplication extends Application {
    @Override public void onCreate() {
        super.onCreate();
        TypefaceProvider.registerDefaultIconSets();
    }
}

You should then checkout the library and investigate the sample code, which provides examples for most functionality. The sample app is also available on Google Play.

Custom Themes

The color of most views can be changed using the BootstrapBrand interface. Several default values such as Success, Warning, and Danger, are provided. You can also create your own by implementing your own class, as below:

   BootstrapButton button = BootstrapButton(context);
   button.setBootstrapBrand(new AwesomeTheme());

   static class AwesomeTheme implements BootstrapBrand {
       // TODO implement methods here
   }

Contact

If you have any questions, issues, or just want to let us know where you're using Android Bootstrap, tweet us at @BeardedHen or email [email protected]