本文整理匯總了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);
}