@@ -0,0 +1,874 @@
+package de.morrox.fontinator;%0A%0Aimport android.annotation.TargetApi;%0Aimport android.content.Context;%0Aimport android.os.Build;%0Aimport android.util.AttributeSet;%0Aimport android.util.Pair;%0Aimport android.widget.Switch;%0A%0Aimport de.morrox.fontinator.utilities.TypefaceLoader;%0Aimport de.morrox.fontinator.utilities.Typefaceable;%0A%0A%0A@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)%0Apublic class FontSwitch extends Switch implements Typefaceable %7B%0A    private TypefaceLoader typefaceLoader;%0A    public FontSwitch(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A        typefaceLoader = TypefaceLoader.get(this, context, attrs);%0A    %7D%0A%0A    @Override%0A    public void setText(CharSequence text, BufferType type) %7B%0A        Pair%3CCharSequence, BufferType%3E pair = TypefaceLoader.inject(typefaceLoader, text, type);%0A        super.setText(pair.first, pair.second);%0A    %7D%0A%7D%0A

Add FontSwitch