iconFont(フォントアイコン)の下
1168 ワード
public class IconFontView extends TextView {
public IconFontView(Context context) {
this(context,null);
}
public IconFontView(Context context, AttributeSet attrs) {
this(context, attrs,-1);
}
public IconFontView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
Typeface iconFont = Typeface.createFromAsset(context.getAssets(), "iconfont.ttf");
setTypeface(iconFont);
}
}
同僚の感覚には何の違いもない.