Skip to content

Commit

Permalink
Updated XML configuration documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
roughike committed Aug 29, 2016
1 parent befe6b8 commit 117c47e
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 @@ -288,6 +288,8 @@ nearby.removeBadge/();

## All customization options

**For the BottomBar:**

```xml
<com.roughike.bottombar.BottomBar
android:id="@+id/bottomBar"
Expand Down Expand Up @@ -321,6 +323,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 @@ -329,6 +333,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 117c47e

Please sign in to comment.