简体   繁体   English

Android 2.3.3触摸浏览

[英]Android 2.3.3 touch by explore

I am developing app for blind community. 我正在为盲人社区开发应用程序。 I want to give an option for the user to explore the screen by scraping finger through the screen (exploring by touch). 我想为用户提供一个通过在屏幕上刮擦手指(通过触摸进行浏览)来浏览屏幕的选项。 I am unable to find any api to build this functionality. 我找不到任何API来构建此功能。 I am trying to achieve this in android 2.3.3 (api level 10). 我正在尝试在android 2.3.3(api级别10)中实现此目的。

I know in Android 4.1 talkback with 'touch by explore' functionality comes by default, but I want to give this feature to the users who are using below android 4.1 devices. 我知道在Android 4.1对讲中默认带有“触摸浏览”功能,但我想将此功能提供给在android 4.1设备以下使用的用户。 Any ideas are appreciated. 任何想法表示赞赏。

You may want try using the AccessibilityShim library from Eyes-Free Project. 您可能想尝试使用Eyes-Free Project中的AccessibilityShim库。 It implements ICS-style touch exploration for individual Activities in Gingerbread and below. 它为姜饼及以下的单个活动实施ICS风格的触摸浏览。

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.main_activity);

    // This call must occur after setContentView().
    AccessiblityShim.attachToActivity(this);
}

It can also be applied to Dialogs. 它也可以应用于对话框。

AccessiblityShim.attachToDialog(dialog);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android 2.0.4中的姜饼选项类似于Android 4.0.4中的可访问性选项(“触摸探索”)ICECREAMSANDWICH - What is the option in Android 2.3.3 Gingerbread LIKE THE ACCESSIBILITY OPTION (“Explore by touch”) in Android 4.0.4 ICECREAMSANDWICH Android 4.4.2辅助功能“按触摸浏览”在应用中不起作用 - Android 4.4.2 Accessibility Explore By Touch not working in app 通过触摸模式检测探索中的多点触控 - Detect multitouch in explore by touch mode Android:如何强制Touch-By-Touch / Talkback重复AccessibilityFocus中当前视图的ContentDescription? - Android: How to force Explore-By-Touch/Talkback to repeat the ContentDescription of the current View in AccessibilityFocus? PendingIntent.getBroadcast不适用于通知抽屉中的默认通知单击/触摸事件-Android Studio 2.3.3 + Java - PendingIntent.getBroadcast not working on for the default notification click/touch event in the notifications drawer - Android Studio 2.3.3 + Java Gradle同步问题/ Android 2.3.3 / Gradle 2.3.3 - Gradle Sync Issues / Android 2.3.3 / Gradle 2.3.3 如何在android中探索样式 - How to explore styling in android 探索Android中的内部存储 - Explore internal storage in Android NullPointerException与Android 2.3.3 Mediaplayer - NullPointerException with android 2.3.3 mediaplayer 下拉微调Android 2.3.3 - Dropdown spinner android 2.3.3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM