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

The following examples show how to use android.view.View#getKeyDispatcherState() . 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 check out the related API usage on the sidebar.
Example 1
Source File: Utilities.java    From Trebuchet with GNU General Public License v3.0 5 votes vote down vote up
@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 File: Utilities.java    From LB-Launcher with 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 File: u.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public static Object a(View view)
{
    return view.getKeyDispatcherState();
}
 
Example 4
Source File: KeyEventCompatEclair.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}
 
Example 5
Source File: KeyEventCompatEclair.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}
 
Example 6
Source File: KeyEventCompatEclair.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}
 
Example 7
Source File: KeyEventCompatEclair.java    From guideshow with MIT License 4 votes vote down vote up
public static Object getKeyDispatcherState(View view) {
    return view.getKeyDispatcherState();
}