set Uninteractable View - Android User Interface

Android examples for User Interface:View Property

Description

set Uninteractable View

Demo Code


//package com.java2s;

import android.view.View;

public class Main {
    public static void setUninteractable(View paramView) {
        paramView.setClickable(false);//www . j a v a  2  s  .  co  m
        paramView.setFocusable(false);
        paramView.setFocusableInTouchMode(false);
    }
}

Related Tutorials