Skip to content
Browse files

Update README.md

  • Loading branch information...
1 parent 930e37c commit 5b1018ca4c4be4b9d4e15fd4034154f94ada1116 @roughike committed
Showing with 22 additions and 19 deletions.
  1. +22 −19 README.md
View
41 README.md
@@ -22,7 +22,7 @@ Your uncle Bob's Galaxy S Mini will probably be supported in the future though.
## Gimme that Gradle sweetness, pls?
```groovy
-compile 'com.roughike:bottom-bar:1.1.4'
+compile 'com.roughike:bottom-bar:1.1.5'
```
**Maven:**
@@ -30,7 +30,7 @@ compile 'com.roughike:bottom-bar:1.1.4'
<dependency>
<groupId>com.roughike</groupId>
<artifactId>bottom-bar</artifactId>
- <version>1.1.4</version>
+ <version>1.1.5</version>
<type>pom</type>
</dependency>
```
@@ -94,6 +94,26 @@ public class MainActivity extends AppCompatActivity {
}
```
+## Customization
+
+```java
+// Disable the left bar on tablets and behave exactly the same on mobile and tablets instead.
+mBottomBar.noTabletGoodness();
+
+// Use the dark theme. Ignored on mobile when there are more than three tabs.
+mBottomBar.useDarkTheme(true);
+
+// Set the color for the active tab. Ignored on mobile when there are more than three tabs.
+mBottomBar.setActiveTabColor("#009688");
+
+// Use custom text appearance in tab titles.
+mBottomBar.setTextAppearance(R.style.MyTextAppearance);
+
+// Use custom typeface that's located at the "/src/main/assets" directory. If using with
+// custom text appearance, set the text appearance first.
+mBottomBar.setTypeFace("MyFont.ttf");
+```
+
#### What about hiding it automatically on scroll?
Easy-peasy!
@@ -160,23 +180,6 @@ mBottomBar.setOnItemSelectedListener(new OnTabSelectedListener() {
For a working example, refer to [the sample app](https://github.com/roughike/BottomBar/tree/master/app/src/main).
-## Customization
-
-```java
-// Use the dark theme. Ignored on mobile when there are more than three tabs.
-mBottomBar.useDarkTheme(true);
-
-// Set the color for the active tab. Ignored on mobile when there are more than three tabs.
-mBottomBar.setActiveTabColor("#009688");
-
-// Use custom text appearance in tab titles.
-mBottomBar.setTextAppearance(R.style.MyTextAppearance);
-
-// Use custom typeface that's located at the "/src/main/assets" directory. If using with
-// custom text appearance, set the text appearance first.
-mBottomBar.setTypeFace("MyFont.ttf");
-```
-
## Common problems and solutions
#### Can I use it by XML?

0 comments on commit 5b1018c

Please sign in to comment.
Something went wrong with that request. Please try again.