本文整理汇总了Java中android.view.accessibility.AccessibilityEvent.appendRecord方法的典型用法代码示例。如果您正苦于以下问题:Java AccessibilityEvent.appendRecord方法的具体用法?Java AccessibilityEvent.appendRecord怎么用?Java AccessibilityEvent.appendRecord使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.view.accessibility.AccessibilityEvent
的用法示例。
在下文中一共展示了AccessibilityEvent.appendRecord方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onRequestSendAccessibilityEvent
import android.view.accessibility.AccessibilityEvent; //导入方法依赖的package包/类
@Override
public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) {
if (super.onRequestSendAccessibilityEvent(child, event)) {
// Add a record for ourselves as well.
AccessibilityEvent record = AccessibilityEvent.obtain();
onInitializeAccessibilityEvent(record);
// Populate with the text of the requesting child.
child.dispatchPopulateAccessibilityEvent(record);
event.appendRecord(record);
return true;
}
return false;
}
示例2: onRequestSendAccessibilityEvent
import android.view.accessibility.AccessibilityEvent; //导入方法依赖的package包/类
@TargetApi(14)
public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) {
if (!super.onRequestSendAccessibilityEvent(child, event)) {
return false;
}
AccessibilityEvent record = AccessibilityEvent.obtain();
onInitializeAccessibilityEvent(record);
child.dispatchPopulateAccessibilityEvent(record);
event.appendRecord(record);
return true;
}
示例3: onRequestSendAccessibilityEvent
import android.view.accessibility.AccessibilityEvent; //导入方法依赖的package包/类
@TargetApi(14)
@Override
public boolean onRequestSendAccessibilityEvent( View child, AccessibilityEvent event ) {
if ( super.onRequestSendAccessibilityEvent( child, event ) ) {
// Add a record for ourselves as well.
AccessibilityEvent record = AccessibilityEvent.obtain();
onInitializeAccessibilityEvent( record );
// Populate with the text of the requesting child.
child.dispatchPopulateAccessibilityEvent( record );
event.appendRecord( record );
return true;
}
return false;
}
示例4: onRequestSendAccessibilityEvent
import android.view.accessibility.AccessibilityEvent; //导入方法依赖的package包/类
public boolean onRequestSendAccessibilityEvent(View paramView, AccessibilityEvent paramAccessibilityEvent) {
if (super.onRequestSendAccessibilityEvent(paramView, paramAccessibilityEvent)) {
AccessibilityEvent localAccessibilityEvent = AccessibilityEvent.obtain();
onInitializeAccessibilityEvent(localAccessibilityEvent);
paramView.dispatchPopulateAccessibilityEvent(localAccessibilityEvent);
paramAccessibilityEvent.appendRecord(localAccessibilityEvent);
return true;
}
return false;
}
示例5: appendRecord
import android.view.accessibility.AccessibilityEvent; //导入方法依赖的package包/类
public static void appendRecord(AccessibilityEvent event, Object record) {
event.appendRecord((AccessibilityRecord) record);
}