Android Open Source - android-iconkit Icon Button






From Project

Back to project page android-iconkit.

License

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.

Java Source Code

/**
 * -------------------------------------------------------------
 * 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()));
  }

}




Java Source Code List

com.tank.iconkit.IconButton.java
com.tank.iconkit.IconDrawable.java
com.tank.iconkit.IconTextView.java
com.tank.iconkit.Util.java
com.tank.iconkitdemo.DemoActivity.java