Back to project page android-iconkit.
The source code is released under:
Apache License
If you think the Android project android-iconkit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * ------------------------------------------------------------- * Copyright (c) 2013 tank, All rights reserved. * https://github.com/Tank000/android-iconkit */*from w ww.jav a 2 s . c o m*/ * @version: 1.0 * @author: tank.tyt@gmail.com * ------------------------------------------------------------- */ package com.tank.iconkit; import android.content.Context; import android.util.AttributeSet; import android.widget.Button; public class IconButton extends Button { public IconButton(Context context) { super(context); // TODO Auto-generated constructor stub setTypeface(Util.getTypeFace(getContext())); } public IconButton(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub setTypeface(Util.getTypeFace(getContext())); } public IconButton(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // TODO Auto-generated constructor stub setTypeface(Util.getTypeFace(getContext())); } }