Java Code Examples for android.view.KeyEvent#Callback

The following examples show how to use android.view.KeyEvent#Callback . 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: SoftInputWindow.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
/**
 * Create a SoftInputWindow that uses a custom style.
 * 
 * @param context The Context in which the DockWindow should run. In
 *        particular, it uses the window manager and theme from this context
 *        to present its UI.
 * @param theme A style resource describing the theme to use for the window.
 *        See <a href="{@docRoot}reference/available-resources.html#stylesandthemes">Style
 *        and Theme Resources</a> for more information about defining and
 *        using styles. This theme is applied on top of the current theme in
 *        <var>context</var>. If 0, the default dialog theme will be used.
 */
public SoftInputWindow(Context context, String name, int theme, Callback callback,
        KeyEvent.Callback keyEventCallback, KeyEvent.DispatcherState dispatcherState,
        int windowType, int gravity, boolean takesFocus) {
    super(context, theme);
    mName = name;
    mCallback = callback;
    mKeyEventCallback = keyEventCallback;
    mDispatcherState = dispatcherState;
    mWindowType = windowType;
    mGravity = gravity;
    mTakesFocus = takesFocus;
    initDockWindow();
}
 
Example 2
Source File: KeyEventCompatEclair.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver, (KeyEvent.DispatcherState)state, target);
}
 
Example 3
Source File: KeyEventCompat.java    From guideshow with MIT License 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return KeyEventCompatEclair.dispatch(event, receiver, state, target);
}
 
Example 4
Source File: KeyEventCompat.java    From guideshow with MIT License 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver);
}
 
Example 5
Source File: KeyEventCompat.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver);
}
 
Example 6
Source File: KeyEventCompat.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
Object target);
 
Example 7
Source File: KeyEventCompat.java    From guideshow with MIT License 4 votes vote down vote up
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
Object target);
 
Example 8
Source File: KeyEventCompat.java    From android-recipes-app with Apache License 2.0 4 votes vote down vote up
public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return IMPL.dispatch(event, receiver, state, target);
}
 
Example 9
Source File: KeyEventCompat.java    From android-recipes-app with Apache License 2.0 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return KeyEventCompatEclair.dispatch(event, receiver, state, target);
}
 
Example 10
Source File: KeyEventCompat.java    From android-recipes-app with Apache License 2.0 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver);
}
 
Example 11
Source File: KeyEventCompat.java    From android-recipes-app with Apache License 2.0 4 votes vote down vote up
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
Object target);
 
Example 12
Source File: KeyEventCompat.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return IMPL.dispatch(event, receiver, state, target);
}
 
Example 13
Source File: KeyEventCompat.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return KeyEventCompatEclair.dispatch(event, receiver, state, target);
}
 
Example 14
Source File: KeyEventCompat.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver);
}
 
Example 15
Source File: KeyEventCompat.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
Object target);
 
Example 16
Source File: KeyEventCompatEclair.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver, (KeyEvent.DispatcherState)state, target);
}
 
Example 17
Source File: KeyEventCompat.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return IMPL.dispatch(event, receiver, state, target);
}
 
Example 18
Source File: KeyEventCompat.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return KeyEventCompatEclair.dispatch(event, receiver, state, target);
}
 
Example 19
Source File: KeyEventCompat.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver);
}
 
Example 20
Source File: KeyEventCompatEclair.java    From guideshow with MIT License 4 votes vote down vote up
public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state,
            Object target) {
    return event.dispatch(receiver, (KeyEvent.DispatcherState)state, target);
}