Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要访问以下内容 -
android:textStyle(of a digital clock control)
以编程方式,我该怎么做?
采用setTypeface(typeface, style)
setTypeface(typeface, style)
对于文本视图:
TextView tv = (TextView) findViewById(R.id.tv);
设置字体tv.setTypeface(tf);
tv.setTypeface(tf);
要获取当前字体集,请使用tv.getTypeface();
tv.getTypeface();