is Activity Enabled - Android Activity

Android examples for Activity:Activity Status

Description

is Activity Enabled

Demo Code


//package com.java2s;
import android.app.Activity;
import android.view.View;

public class Main {
    public static boolean isEnabled(final Activity activity, int id) {
        return activity.findViewById(id).isEnabled();
    }//from  ww w .ja v a 2s  . c  o m

    public static boolean isEnabled(final View view, int id) {
        return view.findViewById(id).isEnabled();
    }
}

Related Tutorials