Skip to content

Commit

Permalink
Custom Tab and Background Colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Miller committed Jun 17, 2016
1 parent 435b512 commit d5f3792
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import android.widget.Toast;
Expand All @@ -29,8 +30,8 @@ protected void onCreate(Bundle savedInstanceState) {
// Customize the colors here
mBottomBar = BottomBar.attach(this, savedInstanceState,
Color.parseColor("#FFFFFF"), // Background Color
Color.parseColor("#0DA5F2"), // Tab Item Color
0.25f); // Tab Item Alpha
ContextCompat.getColor(this, R.color.colorAccent), // Tab Item Color
0.25f); // Tab Item Alpha

mBottomBar.setItems(R.menu.bottombar_menu);

Expand Down

0 comments on commit d5f3792

Please sign in to comment.