Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change background color #2

Closed
Hary25 opened this issue Aug 4, 2016 · 3 comments
Closed

Change background color #2

Hary25 opened this issue Aug 4, 2016 · 3 comments

Comments

@Hary25
Copy link

Hary25 commented Aug 4, 2016

can i change background color from white to blue?

@johnkil
Copy link
Contributor

johnkil commented Aug 4, 2016

@Hary25 you mean window background color?

@Hary25
Copy link
Author

Hary25 commented Aug 6, 2016

background color of bottom navigation @johnkil

@johnkil
Copy link
Contributor

johnkil commented Aug 6, 2016

I used a third-party library https://github.com/Ashok-Varma/BottomNavigation. Info about customization of bottom navigation you can find here https://github.com/Ashok-Varma/BottomNavigation/wiki/Customisations.

For example, how to make blue bottom navigation on sample project:

activity_main.xml

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

  <FrameLayout
      android:id="@+id/content"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="1"/>

  <com.ashokvarma.bottomnavigation.BottomNavigationBar
      android:id="@+id/bottom_navigation"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom"
      app:bnbBackgroundColor="#0000FF"/> <!-- blue color -->

</LinearLayout>

@johnkil johnkil closed this as completed Aug 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants