forked from Bearded-Hen/Android-Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 3
Home
theDazzler edited this page Dec 12, 2013
·
8 revisions
Welcome to the Android-Bootstrap wiki!
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]
#Quick Guides
#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 buttons
- Font Awesome text as per Font Awesome v4
- Animations to Font Awesome Text items
- new! Bootstrap EditText (including states such as success, danger, and default)
#Coming Soon...
- Bootstrap Button text alignment
- tabs
- working with the action bar
#Installation
download the AndroidBootstrap library, import the library into your Android workspace, for more detailed instructions please read this guide!
In each layout file where you want to use Android Bootstrap, paste the following two lines below xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
xmlns:fontawesometext="http://schemas.android.com/apk/res-auto"
Paste these lines inside your theme in styles.xml:
<item name="bootstrapButtonStyle">@style/BootstrapButton</item>
<item name="bootstrapEditTextStyle">@style/BootstrapEditText</item>
It will end up looking like this:
<style name="AppTheme" parent="AppBaseTheme">
<item name="bootstrapButtonStyle">@style/BootstrapButton</item>
<item name="bootstrapEditTextStyle">@style/BootstrapEditText</item>
</style>