當前位置: 首頁>>代碼示例>>Java>>正文


Java KeyEventCompat.startTracking方法代碼示例

本文整理匯總了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;
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:8,代碼來源:DrawerLayout.java

示例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);
}
 
開發者ID:rogues-dev,項目名稱:superglue,代碼行數:9,代碼來源:DebugDrawerLayout.java

示例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);
}
 
開發者ID:qq137712630,項目名稱:MeiZiNews,代碼行數:9,代碼來源:VerticalDrawerLayout.java

示例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);
}
 
開發者ID:jecelyin,項目名稱:920-text-editor-v2,代碼行數:9,代碼來源:TranslucentDrawerLayout.java

示例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);
}
 
開發者ID:ChiangC,項目名稱:FMTech,代碼行數:14,代碼來源:DrawerLayout.java

示例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);
}
 
開發者ID:TR4Android,項目名稱:AppCompat-Extension-Library,代碼行數:9,代碼來源:FloatingActionMenu.java

示例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);
    }
}
 
開發者ID:vishnudevk,項目名稱:MiBandDecompiled,代碼行數:12,代碼來源:DrawerLayout.java

示例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);
    }
}
 
開發者ID:Hamz-a,項目名稱:MyCTFWriteUps,代碼行數:12,代碼來源:DrawerLayout.java

示例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);
}
 
開發者ID:jonathangerbaud,項目名稱:Klyph,代碼行數:9,代碼來源:KlyphDrawerLayout.java


注:本文中的android.support.v4.view.KeyEventCompat.startTracking方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。