Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.res.AssetManager;
import android.graphics.Typeface;

import android.widget.CheckBox;

public class Main {
    public static void changeToComicSansItalic(CheckBox checkBox, AssetManager asset) {
        Typeface typeface = Typeface.createFromAsset(asset, "fonts/comicsans.ttf");
        checkBox.setTypeface(typeface, Typeface.ITALIC);
    }
}