Questions tagged «android-typeface»

21
Android-使用自定义字体
我将自定义字体应用于TextView,但似乎并未更改字体。 这是我的代码: Typeface myTypeface = Typeface.createFromAsset(getAssets(), "fonts/myFont.ttf"); TextView myTextView = (TextView)findViewById(R.id.myTextView); myTextView.setTypeface(myTypeface); 谁能让我摆脱这个问题?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.