Java Code Examples for android.support.v4.view.KeyEventCompat#startTracking()
The following examples show how to use
android.support.v4.view.KeyEventCompat#startTracking() .
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: DrawerLayout.java From letv with Apache License 2.0 | 5 votes |
public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode != 4 || !hasVisibleDrawer()) { return super.onKeyDown(keyCode, event); } KeyEventCompat.startTracking(event); return true; }
Example 2
Source File: VerticalDrawerLayout.java From MeiZiNews with MIT License | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && isDrawerVisible()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 3
Source File: TranslucentDrawerLayout.java From 920-text-editor-v2 with Apache License 2.0 | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 4
Source File: DrawerLayout.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public boolean onKeyDown(int i1, KeyEvent keyevent) { if (i1 == 4 && e()) { KeyEventCompat.startTracking(keyevent); return true; } else { return super.onKeyDown(i1, keyevent); } }
Example 5
Source File: DrawerLayout.java From CodenameOne with GNU General Public License v2.0 | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 6
Source File: DrawerLayout.java From adt-leanback-support with Apache License 2.0 | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 7
Source File: MarginDrawerLayout.java From something.apk with MIT License | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 8
Source File: KlyphDrawerLayout.java From Klyph with MIT License | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 9
Source File: DrawerLayout.java From android-recipes-app with Apache License 2.0 | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 10
Source File: DrawerLayout.java From V.FlyoutTest with MIT License | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 11
Source File: DrawerLayout.java From guideshow with MIT License | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }
Example 12
Source File: DebugDrawerLayout.java From u2020 with Apache License 2.0 | 5 votes |
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) { KeyEventCompat.startTracking(event); return true; } return super.onKeyDown(keyCode, event); }