Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyWallace committed Mar 26, 2016
1 parent 98af69d commit 3c35a40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ and you can also use the **BottomNavigationBehavior** with **CoordinatorLayout**
android:layout_gravity="bottom"
app:layout_behavior="etong.bottomnavigation.lib.BottomNavigationBehavior"/>

####Set tab selected width
bottomLayout.setTabWidthSelectedScale(1.0f);
####Set tab text default visible
bottomLayout.setTextDefaultVisible(true);



#License
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void onClick(View view) {
public void setUpBottomNavigationBar() {

bottomLayout = (BottomNavigationBar) findViewById(R.id.bottomLayout);
bottomLayout.setTabWidthSelectedScale(1.0f);
bottomLayout.setTabWidthSelectedScale(1.5f);
bottomLayout.setTextDefaultVisible(true);
// bottomLayout.setTextColorResId(R.color.color_tab_text);
bottomLayout.addTab(R.drawable.selector_movie, "Movies & Tv", 0xff4a5965);
Expand Down

0 comments on commit 3c35a40

Please sign in to comment.