Android Open Source - android-iconkit Icon Text View






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 
 *  /* w w  w . j  av a  2  s .  c  om*/
 * @version: 1.0 
 * @author: tank.tyt@gmail.com
 * ------------------------------------------------------------- 
 */ 
 
package com.tank.iconkit;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

public class IconTextView extends TextView {

  public IconTextView(Context context) {
    super(context);
    // TODO Auto-generated constructor stub
    setTypeface(Util.getTypeFace(getContext()));
  }
  
  public IconTextView(Context context, AttributeSet attrs) {
    super(context, attrs);
    // TODO Auto-generated constructor stub
    setTypeface(Util.getTypeFace(getContext()));
  }
  
  
  public IconTextView(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