Add the following line to build.gradle:
dependencies {
compile 'com.beardedhen:androidbootstrap:1.0.0'
}
Alternatively you can use Android Bootstrap as a library project by downloading the source.
Finally, remember to copy fontawesome-webfont.ttf into the assets folder of your project, as otherwise FontAwesome icons won't show up.
If you have any questions, issues, or just want to let us know where you're using Android Bootstrap tweet us at @BeardedHen, email support@beardedhen.com, or head over to our website to see more of our creations.
#Features
- Uses min SDK 7 which is Android 2.1 (Tested on a device running Android 2.2)
- Bootstrap buttons as per Bootstrap v3
- Rounded buttons
- Disabled buttons
- Various sized buttons (large to extra small)
- Just text buttons
- Left, right, left and right, or just icon button
- Font Awesome text as per Font Awesome v4
- Animations to Font Awesome Text items
- EditText backgrounds and states
#How to use
The following XML will create a BootstrapButton with an Android icon:
<!-- basic button -->
<com.beardedhen.androidbootstrap.BootstrapButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="Success"
bootstrapbutton:bb_icon_right="fa-android"
bootstrapbutton:bb_type="success"
/>For further information and examples please look at the test project or the wiki:
#Examples
Check out the AndroidBootstrapTest project. Inside activity_main.xml you will find examples of how to achieve the following buttons:
Bootstrap Buttons
Rounded Bootstrap Button
Others
Sizes
Disabled
Font Awesome Text
EditText








