@@ -30,32 +30,6 @@ Quick Start
3030
3131 You should then checkout the library and investigate the sample code, which covers most of the features.
3232 The sample app is also available on [ Google Play] ( https://play.google.com/store/apps/details?id=com.fractalwrench.androidbootstrap.sample ) .
33-
34-
35- Contributing
36- ============
37- Contributions are very welcome! There are 3 main ways you can help out:
38-
39- 1 . Add more Icon Typefaces, using the instructions [ here] ( https://github.com/Bearded-Hen/Android-Bootstrap/blob/master/ADD_FONT.md )
40- 2 . Help implement views which are present in the [ Twitter Bootstrap Specification] ( http://getbootstrap.com/ ) but are not yet in this library.
41- 3 . Raise an issue if you see a bug or are unsure on how something works, or even better - send a pull-request with a fix!
42-
43- Versioning
44- ==========
45- This project uses [ Semantic Versioning] ( http://semver.org/ ) . There are several breaking changes in V2.X of the library, including:
46-
47- - AwesomeTextView replaces FontAwesomeText
48- - Various altered method signatures/attributes for views
49- - Global BootstrapBrand/BootstrapSize attributes replace view-specific enums
50-
51- Please consider what effect these changes might have on your app before upgrading!
52-
53- Contact
54- =======
55- If you have any questions, issues, or just want to let us know where you're using Android Bootstrap
56- tweet us at [ @BeardedHen ] ( https://twitter.com/beardedhen ) , email support@beardedhen.com ,
57- or head over to our [ website] ( http://beardedhen.com/ ) to see more of our creations.
58-
5933
6034Examples
6135============
@@ -186,3 +160,43 @@ Displays images in a rectangular View, themed with BootstrapBrand.
186160 />
187161```
188162![ alt text] ( https://raw.github.com/Bearded-Hen/Android-Bootstrap/master/images/bootstrap_thumbnail.png " BootstrapThumbnail ")
163+
164+ Custom Styles
165+ ============
166+ Custom styles can be applied to any of the views in this library by creating a class which implements
167+ BootstrapBrand, and setting it on the View. Please see the sample code of BootstrapButton for more detail.
168+
169+ ``` java
170+
171+ class CustomBootstrapStyle implements BootstrapBrand {
172+ // specify desired colors here
173+ }
174+
175+ BootstrapButton btn = new BootstrapButton (context);
176+ btn. setBootstrapBrand(new CustomBootstrapStyle (this );
177+ ```
178+
179+ Contributing
180+ ============
181+ Contributions are very welcome! There are 3 main ways you can help out:
182+
183+ 1. Add more Icon Typefaces , using the instructions [here](https: // github.com/Bearded-Hen/Android-Bootstrap/blob/master/ADD_FONT.md)
184+ 2. Help implement views which are present in the [Twitter Bootstrap Specification ](http: // getbootstrap.com/) but are not yet in this library.
185+ 3. Raise an issue if you see a bug or are unsure on how something works, or even better - send a pull- request with a fix!
186+
187+ Versioning
188+ ========= =
189+ This project uses [Semantic Versioning ](http: // semver.org/). There are several breaking changes in V2.X of the library, including:
190+
191+ - AwesomeTextView replaces FontAwesomeText
192+ - Various altered method signatures/ attributes for views
193+ - Global BootstrapBrand / BootstrapSize attributes replace view- specific enums
194+
195+ Please consider what effect these changes might have on your app before upgrading!
196+
197+ Contact
198+ ====== =
199+ If you have any questions, issues, or just want to let us know where you' re using Android Bootstrap
200+ tweet us at [@BeardedHen](https://twitter.com/beardedhen), email support@beardedhen.com,
201+ or head over to our [website](http://beardedhen.com/) to see more of our creations.
202+
0 commit comments