2013-06-14 25 views
13

bunu yapmak için nereden nasıl gidiyorsun, bir sonraki Radyo Düğme benRadyo düğmesinin yanındaki yazı tipini değiştir?

TextView tv = (TextView) findViewById(R.id.textview); 
Typeface font = Typeface.createFromAsset(getAssets(), "SF_Cartoonist_Hand_Bold.ttf"); 
tv.setTypeface(font); 

ben metin için benzer bir şey yapmak istiyorum kullanılan bir TextView'un yazı tipini değiştirmek için?

RadioButton rb = (RadioButton) findViewById(R.id.radiobutton); 
Typeface font = Typeface.createFromAsset(getAssets(), "SF_Cartoonist_Hand_Bold.ttf"); 
rb.setTypeface(font); 
+3

aynı yolu değil midir: – Piovezan

cevap

20

sonraki bir RadioButton için bir TextView yapmak aynı şekilde metne yazı tipini ayarlamak? `RadioButton`` bir setTypeface() `yöntemine sahiptir.
İlgili konular