make CheckBox - Android User Interface

Android examples for User Interface:CheckBox

Description

make CheckBox

Demo Code


//package com.java2s;
import android.content.Context;

import android.widget.CheckBox;

public class Main {
    public static CheckBox makeCheckBox(String label, Context con) {
        CheckBox check = new CheckBox(con);
        check.setText(label);//from ww w .  ja  v a2s. c om
        return check;
    }
}

Related Tutorials