The invention provides a Android platform in the accessibility method of custom dialog box, the method comprises the following steps: rewriting method distributed accessibility event step one, a custom dialog box to override the Android SDK provided by this method, the normal access to make custom dialog box supports accessibility services; step two, in no way to distribute the first obstacle event calls the superclass is a custom dialog box dialog class, call the parent class, barrier free custom attributes dialog box to inherit father; step three, and then set the accessibility attribute class name for the dialog box; method of step four, the final distribution of barrier free event returns false. By using the above method, it is possible to access the user-defined dialog box in the Android system without the information misunderstanding caused by the reading screen software to read all the space in the dialog box directly.
【技术实现步骤摘要】
一种在Android平台无障碍阅读自定义对话框的方法
本专利属于计算机领域,具体而言涉及一一种在Android平台无障碍阅读自定义对话框的方法。
技术介绍
“信息无障碍”是指任何人在任何情况下都能平等、方便、无障碍地获取信息并利用信息。在现有技术中,通常信息无障碍所指的是能够实现对于有视觉、听觉等身体功能障碍的人提供无障碍信息的方法。随着智能移动终端,例如智能手机,的普及,人们获取信息已经变得更为便捷。但是智能移动终端对于有视觉功能障碍的人士而言,来了较大的挑战。例如,很多显示在智能移动终端上的信息都依赖于借助视觉获取或者是借助视觉和其他操作来获取。为了提升移动终端的无障碍性能,现有技术中已经开发出了读屏器,来阅读智能终端屏幕上的内容,借助于其它无障碍软件和硬件,帮助视觉功能有障碍的人士来操作智能移动终端从而获取信息。但是,现有技术中屏幕阅读器也存在局限。例如,在弹出对话框后,屏幕阅读器会把对话框内的所有元素朗读一遍。例如对话框内有标题:“警告”;提示语:“发生了一个错误,您是否重新启动程序?”;两个按钮“确定”、“取消”;现有技术在对话框弹出时屏幕阅读器朗读为: ...
【技术保护点】
一种在Android平台无障碍阅读自定义对话框的方法,其特征在于,所述方法中包括如下步骤:步骤一、自定义对话框重写Android sdk提供的分发无障碍事件的方法(boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent))。重写此方法,让自定义对话框支持无障碍服务的正常访问;步骤二、在分发无障碍事件的方法中首先调用自定义对话框的父类即对话框类的实现,调用父类的实现后,自定义对话框能继承父类的无障碍属性;步骤三、然后设置无障碍属性中的类名为对话框步骤四、最后分发无障碍事件的方法(boolean dispatc ...
【技术特征摘要】
1.一种在Android平台无障碍阅读自定义对话框的方法,其特征在于,所述方法中包括如下步骤:步骤一、自定义对话框重写Androidsdk提供的分发无障碍事件的方法(booleandispatchPopulateAccessibilityEvent(AccessibilityEvent))。重写此方法,让自定义对话框支持无障碍服务的正常访问;步骤二、在分发无障碍事件的方法中首先调用自定义对...
【专利技术属性】
技术研发人员:李鸿利,
申请(专利权)人:深圳市联谛信息无障碍有限责任公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。