How do I use custom fonts on Android?

How do I use custom fonts on Android?
Answer
Here are the steps to solve it:
  1. Go to the (project folder)
  2. Then app>src>main.
  3. Create folder ‘assets>fonts’ into the main folder.
  4. Put your .ttf file into the fonts folder. AssetManager am = context. getApplicationContext(). getAssets(); typeface = Typeface. createFromAsset(am, String. format(Locale.
Photo in the article by “Wikimedia Commons”
Code:
   https://commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2017/04
Method 1 On Android
  • Open your Android’s Google Play Store.
  • Tap the magnifying glass icon.
  • Type whatsapp into the search bar, then tap Go.
  • Tap the “WhatsApp Messenger” item.
  • Tap INSTALL.
  • Tap ACCEPT when prompted.
  • Wait for WhatsApp to finish downloading, then tap OPEN.
  • Tap AGREE AND CONTINUE.
 

Tìm kiếm

Back
Top