当前位置: 首页>>代码示例>>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;未经允许,请勿转载。