enable a View - Android User Interface

Android examples for User Interface:View Enable

Description

enable a View

Demo Code


//package com.java2s;

import android.view.View;

public class Main {
    public static void enableView(View view) {
        view.setVisibility(0);//from ww  w .j  a v a 2s  .  c  o  m
        view.setFocusable(true);
        view.setClickable(true);
        view.setAlpha(1);
    }
}

Related Tutorials