c# - Monodroid - Set Custom font -


i using monodroid make app , can't figure out how make custom font.

below code

textview text = findviewbyid<textview>(resource.id.tvchange); typeface tf = typeface.createfromasset(assets,"fonts/gt.otf"); text.settypeface(tf); 

there no getassets() in monodroid have no idea if typeface correct, , text.settypeface(tf); expects 2 arguements, second don't know.

thanks

i found out problem

here code below

 typeface tf = typeface.createfromasset(application.context.assets, "fonts/gt.otf");  textview explodevin = findviewbyid<textview>(resource.id.tvexvin);  explodevin.settypeface(tf,typefacestyle.normal); 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -