Android-Bootstrap
Bootstrap style widgets for Android, with Glyph Icons
An Android Java library that brings Twitter Bootstrap's visual style, themed buttons, progress bars, labels, and image views, to native Android apps with a single build config line.
Android Bootstrap is a Java library for Android app development that brings the visual style of Twitter Bootstrap into the Android world. Bootstrap is a well-known web design system with a consistent set of colors, button styles, and UI patterns. This library recreates those patterns as native Android components, so developers who already know Bootstrap can apply familiar styles to a mobile app without building them from scratch.
The library provides a collection of ready-made interface components. There are styled buttons that support icon fonts, grouped buttons that share a single style setting, text views that can display icon glyphs, and progress bars that animate smoothly as values change. It also includes stacked progress bars for showing multiple segments in one bar, label widgets for non-clickable badges, text input fields with colored borders, and image views that display photos in circular or rectangular frames with colored outlines.
All components share a theming system called Bootstrap Brands, which maps color names like success, warning, danger, info, and primary to specific shades. Changing the brand on a component shifts its color automatically, so keeping a consistent look across an app requires changing one attribute rather than hunting through multiple style definitions.
Adding the library to an Android project takes one line in the build configuration file. After that, an app needs to register the icon fonts once at startup, and then all the custom components become available in layout files. A sample application is available on Google Play and in the source code, covering most of what the library can do.
Documentation is hosted on GitHub Pages. Bug reports go through GitHub Issues, and usage questions are handled on StackOverflow using a dedicated tag. The project uses CircleCI for automated testing and publishes releases to Maven Central.
Where it fits
- Add Bootstrap-styled buttons with icon fonts to an Android app with one line in the build configuration.
- Apply a consistent color theme across all UI components by changing a single Bootstrap Brand attribute.
- Display circular or rectangular framed image views with colored outlines in an Android layout.
- Show animated or stacked multi-segment progress bars in an Android screen.