Android examples for User Interface:View Enable
set View Disable
//package com.java2s; import android.view.View; public class Main { public static void setDisable(View... views) { if (views != null && views.length > 0) { for (View view : views) { if (view != null && view.isEnabled()) { view.setEnabled(false); }/* ww w. j a v a 2 s. c o m*/ } } } }