Skip to content

Commit

Permalink
Merge pull request #454 from roughike/development
Browse files Browse the repository at this point in the history
Updated XML configuration documentation.
  • Loading branch information
roughike committed Aug 29, 2016
2 parents fcaf7ab + 117c47e commit c31750c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ nearby.removeBadge/();

## All customization options

**For the BottomBar:**

```xml
<com.roughike.bottombar.BottomBar
android:id="@+id/bottomBar"
Expand Down Expand Up @@ -324,6 +326,8 @@ nearby.removeBadge/();
<dd>the color for inactive tabs, that's used in the tab icons and titles.</dd>
<dt>bb_activeTabColor</dt>
<dd>the color for active tabs, that's used in the tab icons and titles.</dd>
<dt>bb_badgeBackgroundColor</dt>
<dd>the background color for any Badges in this BottomBar.</dd>
<dt>bb_titleTextAppearance</dt>
<dd>custom textAppearance for the titles</dd>
<dt>bb_titleTypeFace</dt>
Expand All @@ -332,6 +336,34 @@ nearby.removeBadge/();
<dd>controls whether the shadow is shown or hidden, defaults to true.</dd>
</dl>

**For the tabs:**

```xml
<tab
id="@+id/tab_recents"
title="Recents"
icon="@drawable/empty_icon"
inActiveColor="#00FF00"
activeColor="#FF0000"
barColorWhenSelected="#FF0000"
badgeBackgroundColor="#FF0000" />
```

<dl>
<dt>inActiveColor</dt>
<dd>the color for inactive tabs, that's used in the tab icons and titles.</dd>
<dt>activeColor</dt>
<dd>the color for active tabs, that's used in the tab icons and titles.</dd>
<dt>barColorWhenSelected</dt>
<dd>the color that the whole BottomBar should be when selected this tab.</dd>
<dt>badgeBackgroundColor</dt>
<dd>the background color for any Badges in this tab.</dd>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>

## Apps using BottomBar

* [FragNav](https://github.com/ncapdevi/FragNav) : An Android Library for managing multiple stacks of Fragments. BottomBar is used in the sample app.
Expand Down

0 comments on commit c31750c

Please sign in to comment.