Is it good to use fonts in native Android apps?

I am going to use font icons instead of pngs in my native android app. I cannot find any recommendation to use or not use font icons.

So is it bad practice or good to use font icons in native Android apps?

(By default, I mean that I do not use webview for the user interface)

+4
source share
1 answer

Like any other practice in the world, she has her own pros and minus .

Pros :

  • Changing the color of the icon becomes an ultralight fix.
  • SVG, ( small.png)
  • - , , .png

:

  • , .
  • :

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="\uE118"/>
    

    \uE118

  • , , :

    • Typefaces

      (, , TextView Typeface ( ), xml)

  • , , , . .

:
png , - ; - , , .

+5

Source: https://habr.com/ru/post/1625699/


All Articles