Java Code Examples for android.view.View#getKeyDispatcherState()

The following examples show how to use android.view.View#getKeyDispatcherState() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
@TargetApi(Build.VERSION_CODES.KITKAT)
public static boolean isViewAttachedToWindow(View v) {
    if (ATLEAST_KITKAT) {
        return v.isAttachedToWindow();
    } else {
        // A proxy call which returns null, if the view is not attached to the window.
        return v.getKeyDispatcherState() != null;
    }
}
 
Example 2
Source Project: LB-Launcher   File: Utilities.java    License: Apache License 2.0 5 votes vote down vote up
@TargetApi(Build.VERSION_CODES.KITKAT)
public static boolean isViewAttachedToWindow(View v) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        return v.isAttachedToWindow();
    } else {
        // A proxy call which returns null, if the view is not attached to the window.
        return v.getKeyDispatcherState() != null;
    }
}
 
Example 3
Source Project: MiBandDecompiled   File: u.java    License: Apache License 2.0 4 votes vote down vote up
public static Object a(View view)
{
    return view.getKeyDispatcherState();
}
 
Example 4
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}
 
Example 5
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}
 
Example 6
Source Project: V.FlyoutTest   File: KeyEventCompatEclair.java    License: MIT License 4 votes vote down vote up
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}
 
Example 7
Source Project: guideshow   File: KeyEventCompatEclair.java    License: MIT License 4 votes vote down vote up
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}