Java 类android.view.WindowId 实例源码

项目:ApkLauncher    文件:WindowFocusObserver.java   
@Override
public void onAttachedToWindow() {
    super.onAttachedToWindow();
    WindowId token = getWindow().getDecorView().getWindowId();
    token.registerFocusObserver(mObserver);
    mState.setText(token.isFocused() ? "Focused" : "Not focused");
}
项目:ApiDemos    文件:WindowFocusObserver.java   
@Override
public void onAttachedToWindow() {
    super.onAttachedToWindow();
    WindowId token = getWindow().getDecorView().getWindowId();
    token.registerFocusObserver(mObserver);
    mState.setText(token.isFocused() ? "Focused" : "Not focused");
}
项目:felix-on-android    文件:WindowFocusObserver.java   
@Override
public void onAttachedToWindow() {
    super.onAttachedToWindow();
    WindowId token = getWindow().getDecorView().getWindowId();
    token.registerFocusObserver(mObserver);
    mState.setText(token.isFocused() ? "Focused" : "Not focused");
}
项目:MEng    文件:WindowFocusObserver.java   
@Override
public void onAttachedToWindow() {
    super.onAttachedToWindow();
    WindowId token = getWindow().getDecorView().getWindowId();
    token.registerFocusObserver(mObserver);
    mState.setText(token.isFocused() ? "Focused" : "Not focused");
}
项目:deview-2013-samples    文件:WindowFocusObserver.java   
@Override
public void onAttachedToWindow() {
    super.onAttachedToWindow();
    WindowId token = getWindow().getDecorView().getWindowId();
    token.registerFocusObserver(mObserver);
    mState.setText(token.isFocused() ? "Focused" : "Not focused");
}
项目:ApkLauncher    文件:WindowFocusObserver.java   
@Override
public void onFocusGained(WindowId token) {
    mState.setText("Gained focus");
}
项目:ApkLauncher    文件:WindowFocusObserver.java   
@Override
public void onFocusLost(WindowId token) {
    mState.setText("Lost focus");
}
项目:ApiDemos    文件:WindowFocusObserver.java   
@Override
public void onFocusGained(WindowId token) {
    mState.setText("Gained focus");
}
项目:ApiDemos    文件:WindowFocusObserver.java   
@Override
public void onFocusLost(WindowId token) {
    mState.setText("Lost focus");
}
项目:felix-on-android    文件:WindowFocusObserver.java   
@Override
public void onFocusGained(WindowId token) {
    mState.setText("Gained focus");
}
项目:felix-on-android    文件:WindowFocusObserver.java   
@Override
public void onFocusLost(WindowId token) {
    mState.setText("Lost focus");
}
项目:MEng    文件:WindowFocusObserver.java   
@Override
public void onFocusGained(WindowId token) {
    mState.setText("Gained focus");
}
项目:MEng    文件:WindowFocusObserver.java   
@Override
public void onFocusLost(WindowId token) {
    mState.setText("Lost focus");
}
项目:deview-2013-samples    文件:WindowFocusObserver.java   
@Override
public void onFocusGained(WindowId token) {
    mState.setText("Gained focus");
}
项目:deview-2013-samples    文件:WindowFocusObserver.java   
@Override
public void onFocusLost(WindowId token) {
    mState.setText("Lost focus");
}