作者:丝兰郁香 | 来源:互联网 | 2023-09-17 18:55
本文整理了Java中android.widget.EditText.onInitializeAccessibilityEvent()方法的一些代码示例,展示了
本文整理了Java中android.widget.EditText.onInitializeAccessibilityEvent()
方法的一些代码示例,展示了EditText.onInitializeAccessibilityEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EditText.onInitializeAccessibilityEvent()
方法的具体详情如下:
包路径:android.widget.EditText
类名称:EditText
方法名:onInitializeAccessibilityEvent
EditText.onInitializeAccessibilityEvent介绍
暂无
代码示例
代码示例来源:origin: com.albedinsky.android/ui-widget-common
/**
*/
@Override
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
public void onInitializeAccessibilityEvent(@NonNull AccessibilityEvent event) {
super.onInitializeAccessibilityEvent(event);
event.setClassName(EditTextWidget.class.getName());
}
代码示例来源:origin: com.albedinsky.android/ui-widget-text
/**
*/
@Override
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
public void onInitializeAccessibilityEvent(@NonNull AccessibilityEvent event) {
super.onInitializeAccessibilityEvent(event);
event.setClassName(EditTextWidget.class.getName());
}
代码示例来源:origin: com.albedinsky.android/ui
/**
*/
@Override
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
public void onInitializeAccessibilityEvent(@NonNull AccessibilityEvent event) {
super.onInitializeAccessibilityEvent(event);
event.setClassName(EditTextWidget.class.getName());
}
代码示例来源:origin: MiEcosystem/mijiaSDK
private void sendAccessibilityEventForVirtualText(int eventType) {
AccessibilityManager acm = (AccessibilityManager) getContext().getSystemService(Context.ACCESSIBILITY_SERVICE);
if (acm.isEnabled()) {
AccessibilityEvent event = AccessibilityEvent.obtain(eventType);
mInputText.onInitializeAccessibilityEvent(event);
mInputText.onPopulateAccessibilityEvent(event);
event.setSource(NumberPicker.this, VIRTUAL_VIEW_ID_INPUT);
requestSendAccessibilityEvent(NumberPicker.this, event);
}
}