sci*_*bor 15 fonts android radio-button
要更改我使用的textView的字体
TextView tv = (TextView) findViewById(R.id.textview);
Typeface font = Typeface.createFromAsset(getAssets(), "SF_Cartoonist_Hand_Bold.ttf");
tv.setTypeface(font);
Run Code Online (Sandbox Code Playgroud)
我想为单选按钮旁边的文本做类似的事情,我该怎么做呢?
Pio*_*zan 26
您可以将字体设置为旁边的文本,RadioButton方法与TextView:
RadioButton rb = (RadioButton) findViewById(R.id.radiobutton);
Typeface font = Typeface.createFromAsset(getAssets(), "SF_Cartoonist_Hand_Bold.ttf");
rb.setTypeface(font);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12059 次 |
| 最近记录: |