I have searched a lot in google but i can able to send either one custom font or text in textview but i wanted to set both in the same textview can any one help me in this this my textview
<TextView
android:id="@+id/pleaseRead"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pleasereadthis" />*
you can use lib @ https://github.com/chrisjenx/Calligraphy which provides extensive font capabilities.
Else create font like below
Typeface t = createFromAsset(AssetManager mgr, String path)
and then
textview.setTypeface(t)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.