当前位置: 首页>>代码示例>>Java>>正文


Java AccessibilityEventCompat.getContentChangeTypes方法代码示例

本文整理汇总了Java中android.support.v4.view.accessibility.AccessibilityEventCompat.getContentChangeTypes方法的典型用法代码示例。如果您正苦于以下问题:Java AccessibilityEventCompat.getContentChangeTypes方法的具体用法?Java AccessibilityEventCompat.getContentChangeTypes怎么用?Java AccessibilityEventCompat.getContentChangeTypes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.support.v4.view.accessibility.AccessibilityEventCompat的用法示例。


在下文中一共展示了AccessibilityEventCompat.getContentChangeTypes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: shouldDeferAccessibilityEvent

import android.support.v4.view.accessibility.AccessibilityEventCompat; //导入方法依赖的package包/类
/**
 * Returns true if an accessibility event should not be dispatched now. This happens when an
 * accessibility request arrives while RecyclerView does not have a stable state which is very
 * hard to handle for a LayoutManager. Instead, this method records necessary information about
 * the event and dispatches a window change event after the critical section is finished.
 *
 * @return True if the accessibility event should be postponed.
 */
boolean shouldDeferAccessibilityEvent(AccessibilityEvent event) {
    if (isComputingLayout()) {
        int type = 0;
        if (event != null) {
            type = AccessibilityEventCompat.getContentChangeTypes(event);
        }
        if (type == 0) {
            type = AccessibilityEventCompat.CONTENT_CHANGE_TYPE_UNDEFINED;
        }
        mEatenAccessibilityChangeFlags |= type;
        return true;
    }
    return false;
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:23,代码来源:RecyclerView.java

示例2: shouldDeferAccessibilityEvent

import android.support.v4.view.accessibility.AccessibilityEventCompat; //导入方法依赖的package包/类
boolean shouldDeferAccessibilityEvent(AccessibilityEvent event) {
    if (!isComputingLayout()) {
        return false;
    }
    int type = 0;
    if (event != null) {
        type = AccessibilityEventCompat.getContentChangeTypes(event);
    }
    if (type == 0) {
        type = 0;
    }
    this.mEatenAccessibilityChangeFlags |= type;
    return true;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:15,代码来源:RecyclerView.java

示例3: sendAccessibilityEventUnchecked

import android.support.v4.view.accessibility.AccessibilityEventCompat; //导入方法依赖的package包/类
public void sendAccessibilityEventUnchecked(AccessibilityEvent paramAccessibilityEvent)
{
  boolean bool = isComputingLayout();
  int i = 0;
  if (bool) {
    if (paramAccessibilityEvent == null) {
      break label60;
    }
  }
  label60:
  for (int j = AccessibilityEventCompat.getContentChangeTypes(paramAccessibilityEvent);; j = 0)
  {
    int k = 0;
    if (j == 0) {}
    for (;;)
    {
      this.mEatenAccessibilityChangeFlags = (k | this.mEatenAccessibilityChangeFlags);
      i = 1;
      if (i != 0) {
        return;
      }
      super.sendAccessibilityEventUnchecked(paramAccessibilityEvent);
      return;
      k = j;
    }
  }
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:28,代码来源:RecyclerView.java


注:本文中的android.support.v4.view.accessibility.AccessibilityEventCompat.getContentChangeTypes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。