how can i set a font, whose ttf resides in my assets folder through xml?
I know how to do that programmatically but how can you do that via xml? Thanks in advance.
how can i set a font, whose ttf resides in my assets folder through
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot do it using XML directly, however you can extend
TextViewand set a default font.And in your layout use new
TextViewI am posting this from my prev answer https://stackoverflow.com/a/11239305/1166537