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

216
Vistas
Android - Custom currency symbol

I need a way to display custom currency symbol. I'm using NumberFormat and I can't find a way to replace the currency symbol as it all depends on the locale. the symbol I want to use for currency is a specific symbol for the app I'm working on. any ideas? 🤞

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can put symbols directly into your format pattern and surround them with apostrophes (just in case they are a pattern symbol) instead of using the currency symbol notation.

fun main() {
    val input = 5.47
    val symbol = '\u263a'
    val result = DecimalFormat("'$symbol'#.##").format(input)
    println(result)
}
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