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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -