Cancel View Focus Changed - Android User Interface

Android examples for User Interface:Touch Event

Description

Cancel View Focus Changed

Demo Code


//package com.java2s;

import android.view.View;

public class Main {

    public final static void CancelViewFocusChanged(View inView) {
        inView.setOnTouchListener(null);
        inView.setOnFocusChangeListener(null);
    }//from w w  w.  j ava  2 s  .  c o  m
}

Related Tutorials