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 check out the related API usage on the sidebar.
Example 1
Source Project: Trebuchet File: Utilities.java License: GNU General Public License v3.0 | 5 votes |
@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 |
@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 |
public static Object a(View view) { return view.getKeyDispatcherState(); }
Example 4
Source Project: CodenameOne File: KeyEventCompatEclair.java License: GNU General Public License v2.0 | 4 votes |
public static Object getKeyDispatcherState(View view) { return view.getKeyDispatcherState(); }
Example 5
Source Project: adt-leanback-support File: KeyEventCompatEclair.java License: Apache License 2.0 | 4 votes |
public static Object getKeyDispatcherState(View view) { return view.getKeyDispatcherState(); }
Example 6
Source Project: V.FlyoutTest File: KeyEventCompatEclair.java License: MIT License | 4 votes |
public static Object getKeyDispatcherState(View view) { return view.getKeyDispatcherState(); }
Example 7
Source Project: guideshow File: KeyEventCompatEclair.java License: MIT License | 4 votes |
public static Object getKeyDispatcherState(View view) { return view.getKeyDispatcherState(); }