FileDocCategorySizeDatePackage
GlobalFocusChange.javaAPI DocAndroid 1.5 API1452Wed May 06 22:42:02 BST 2009com.android.frameworktest.view

GlobalFocusChange

public class GlobalFocusChange extends android.app.Activity implements ViewTreeObserver.OnGlobalFocusChangeListener

Fields Summary
public android.view.View
mOldFocus
public android.view.View
mNewFocus
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        setContentView(R.layout.focus_listener);
        findViewById(R.id.left).getViewTreeObserver().addOnGlobalFocusChangeListener(this);
    
public voidonGlobalFocusChanged(android.view.View oldFocus, android.view.View newFocus)

        mOldFocus = oldFocus;
        mNewFocus = newFocus;
    
public voidreset()

        mOldFocus = mNewFocus = null;