當前位置: 首頁>>代碼示例>>Java>>正文


Java AccessibilityEvent.appendRecord方法代碼示例

本文整理匯總了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;
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:14,代碼來源:IcsAdapterView.java

示例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;
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:12,代碼來源:AdapterView.java

示例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;
}
 
開發者ID:junchenChow,項目名稱:exciting-app,代碼行數:15,代碼來源:AdapterView.java

示例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;
}
 
開發者ID:Evan-Galvin,項目名稱:FreeStreams-TVLauncher,代碼行數:11,代碼來源:AdapterView.java

示例5: appendRecord

import android.view.accessibility.AccessibilityEvent; //導入方法依賴的package包/類
public static void appendRecord(AccessibilityEvent event, Object record) {
    event.appendRecord((AccessibilityRecord) record);
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:4,代碼來源:AccessibilityEventCompatIcs.java


注:本文中的android.view.accessibility.AccessibilityEvent.appendRecord方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。