Java Code Examples for android.view.View.SCREEN_STATE_OFF

The following are Jave code examples for showing how to use SCREEN_STATE_OFF of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: mongol-library   File: MongolEditText.java   View Source Code Vote up 5 votes
@Override
public void onScreenStateChanged(int screenState) {
    switch (screenState) {
        case View.SCREEN_STATE_ON:
            startBlinking();
            break;
        case View.SCREEN_STATE_OFF:
            stopBlinking();
            break;
    }
}
 
Example 2
Project: CubeLoadingView   File: CubeLoadingView.java   View Source Code Vote up 5 votes
@Override
public void onScreenStateChanged(int screenState) {
    super.onScreenStateChanged(screenState);
    if (screenState == View.SCREEN_STATE_OFF && !forceStop) {
        stop();
        forceStop = false;
    }
}