Skip to content
Browse files

Merge remote-tracking branch 'origin/master'

  • Loading branch information...
2 parents b307c03 + 5b1018c commit 5424badf91fe867fee029f29561124403bca5685 @roughike committed
Showing with 25 additions and 20 deletions.
  1. +25 −20 README.md
View
45 README.md
@@ -1,7 +1,9 @@
# BottomBar
<img src="https://raw.githubusercontent.com/roughike/BottomBar/master/scrolling_demo.gif" width="278" height="492" /> <img src="https://raw.githubusercontent.com/roughike/BottomBar/master/demo2.gif" width="278" height="492" />
-**Before sending your pull requests: [How to contribute](https://github.com/roughike/BottomBar/edit/master/README.md#contributions)**
+**Don't send me pull requests just yet, not until the dust settles.**
+
+**[How to contribute](https://github.com/roughike/BottomBar/blob/master/README.md#contributions)**
[Common problems and solutions](https://github.com/roughike/BottomBar/blob/master/README.md#common-problems-and-solutions)
@@ -20,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:**
@@ -28,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>
```
@@ -92,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!
@@ -158,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 5424bad

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