Loading typeface dynamically from url or statically from lib
问题 I'm running an Android application and I want to load a font dynamically and use it during runtime. How can I do this? And also how can I include a font in an SDK that I've written, reference the sdk in the app I've written, and use the font included in the SDK? Edit: Thanks for putting a -1 Vote on this, whoever did this, I'll stop sharing knowledge, that's a good way to shut me down. 回答1: Here's how I would do it: (Using an AsyncTask, which is not perfect) If you want something more stable