move View To Next Focus - Android User Interface

Android examples for User Interface:View Click

Description

move View To Next Focus

Demo Code


//package com.java2s;

import android.view.View;

public class Main {
    public static void moveToNextFocus(View view) {
        if (view != null) {
            View next = view.focusSearch(View.FOCUS_FORWARD);
            if (next != null) {
                next.requestFocus();// w ww .  j av  a  2  s.  com
            }
        }
    }
}

Related Tutorials