Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
How to set text color of bottom navigation item selection and unselection?

I was trying to set the following attribute of BottomNavigationView widget

app:itemTextColor="@color/text_color"

But this sets the text color of active and inactive item both. I want to have different text color on active and inactive item of BottomNavigationView.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

First, you have to make a selectable color in res>color>selectable_color

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_checked="true" android:color="@color/selected_text_color" />
    <item android:state_checked="false" android:color="@color/unselected_text_color"/>
</selector>

Then you have to set this selectable color as itemTextColor in BottomNavigationView widget

app:itemTextColor="@color/selectable_text_color"
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!