本文整理汇总了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;
}
示例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;
}
示例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;
}
}
}