Using fonts in Android

73 013
25.8
Следующее
14.09.17 – 34 8742:12
TextView: Now with auto-sizing
Популярные
19 дней – 5 0170:50
Flow layouts in Jetpack Compose
Опубликовано 12 сентября 2017, 17:01
Android O and Support Library 26 introduce new ways of working with fonts. You can now bundle fonts as resources by adding the font file in the res/font folder and use it like any other asset in XML layouts, styles or programmatically via the Typeface.

Instead of bundling your font files in the APK, you can now let the APK download them. Your app’s size is decreased and overall system health is improved, since multiple APKs can use the same font.

For more info, check out:
Working with Fonts guide: goo.gl/BH43G7
Downloadable Fonts guide: goo.gl/1qot1v
Downloadable Fonts sample: goo.gl/xJ5O3C
Google I/O 2017 talk on “What’s new in Support Library”: goo.gl/Ukf4Mz

Subscribe to the Android Developers channel here: goo.gl/vLYDU
автотехномузыкадетское