Android Developers1.32 млн
Следующее
Опубликовано 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
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