Android Open Source - MagicViews Magic Checked Text View






From Project

Back to project page MagicViews.

License

The source code is released under:

Apache License

If you think the Android project MagicViews 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

package com.ivankocijan.magicviews.views;
//  w ww  .  jav a2s  .  c o m
import android.content.Context;
import android.util.AttributeSet;
import android.widget.CheckedTextView;

import com.ivankocijan.magicviews.utils.FontUtils;

/**
 * Created by ivankocijan on 19.05.2014..
 */
public class MagicCheckedTextView extends CheckedTextView {

    public MagicCheckedTextView (Context context) {
        super(context);
    }

    public MagicCheckedTextView (Context context, AttributeSet attrs) {
        super(context, attrs);

        if (!isInEditMode()) {
            init(context, attrs);
        }

    }

    public MagicCheckedTextView (Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);

        if (!isInEditMode()) {
            init(context, attrs);
        }

    }


    private void init (Context ctx, AttributeSet attrs) {

        FontUtils.setTypeface(ctx, attrs, this);

    }

}




Java Source Code List

com.ivankocijan.TestApp.ExamplePreferenceFragment.java
com.ivankocijan.TestApp.TestAppApplication.java
com.ivankocijan.TestApp.activites.MainActivity.java
com.ivankocijan.TestApp.activites.PreferenceExampleActivity.java
com.ivankocijan.magicviews.FontNotFoundException.java
com.ivankocijan.magicviews.MagicFont.java
com.ivankocijan.magicviews.MagicViewsNotInitializedException.java
com.ivankocijan.magicviews.MagicViews.java
com.ivankocijan.magicviews.enums.PreferenceType.java
com.ivankocijan.magicviews.preference.MagicCheckBoxPreference.java
com.ivankocijan.magicviews.preference.MagicEditTextPreference.java
com.ivankocijan.magicviews.preference.MagicPreferenceGroup.java
com.ivankocijan.magicviews.preference.MagicPreference.java
com.ivankocijan.magicviews.preference.MagicSwitchPreference.java
com.ivankocijan.magicviews.utils.FontUtils.java
com.ivankocijan.magicviews.views.MagicButton.java
com.ivankocijan.magicviews.views.MagicCheckBox.java
com.ivankocijan.magicviews.views.MagicCheckedTextView.java
com.ivankocijan.magicviews.views.MagicEditText.java
com.ivankocijan.magicviews.views.MagicTextView.java