本文整理汇总了Java中android.support.v4.view.KeyEventCompat.startTracking方法的典型用法代码示例。如果您正苦于以下问题:Java KeyEventCompat.startTracking方法的具体用法?Java KeyEventCompat.startTracking怎么用?Java KeyEventCompat.startTracking使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.v4.view.KeyEventCompat
的用法示例。
在下文中一共展示了KeyEventCompat.startTracking方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode != 4 || !hasVisibleDrawer()) {
return super.onKeyDown(keyCode, event);
}
KeyEventCompat.startTracking(event);
return true;
}
示例2: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) {
KeyEventCompat.startTracking(event);
return true;
}
return super.onKeyDown(keyCode, event);
}
示例3: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && isDrawerVisible()) {
KeyEventCompat.startTracking(event);
return true;
}
return super.onKeyDown(keyCode, event);
}
示例4: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) {
KeyEventCompat.startTracking(event);
return true;
}
return super.onKeyDown(keyCode, event);
}
示例5: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
{
if (paramInt == 4)
{
if (findVisibleDrawer() != null) {}
for (int i = 1; i != 0; i = 0)
{
KeyEventCompat.startTracking(paramKeyEvent);
return true;
}
}
return super.onKeyDown(paramInt, paramKeyEvent);
}
示例6: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && mExpanded) {
KeyEventCompat.startTracking(event);
return true;
}
return super.onKeyDown(keyCode, event);
}
示例7: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
public boolean onKeyDown(int i1, KeyEvent keyevent)
{
if (i1 == 4 && e())
{
KeyEventCompat.startTracking(keyevent);
return true;
} else
{
return super.onKeyDown(i1, keyevent);
}
}
示例8: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
public boolean onKeyDown(int i, KeyEvent keyevent)
{
if (i == 4 && hasVisibleDrawer())
{
KeyEventCompat.startTracking(keyevent);
return true;
} else
{
return super.onKeyDown(i, keyevent);
}
}
示例9: onKeyDown
import android.support.v4.view.KeyEventCompat; //导入方法依赖的package包/类
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && hasVisibleDrawer()) {
KeyEventCompat.startTracking(event);
return true;
}
return super.onKeyDown(keyCode, event);
}