iconFont(字体图标)下
来源:互联网 发布:apache tomcat怎么用 编辑:程序博客网 时间:2024/06/05 06:21
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); }}
同事的感觉没什么区别
阅读全文