本文整理匯總了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);
}