Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

269
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda