我正在爲某些應用程序添加accessebility支持。它適用於標準UI元素(例如按鈕),但出於某種原因不適用於我的自定義元素,至於RelativeLayout與ImageView和TextView(它看起來像圖標)。我已經定義了android:focusable =「true」並設置了contentDescription。RelativeLayout和accessebility支持
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
android:contentDescription=」my content description」
android:focusable="true">
<ImageView
...
/>
<TextView
...
/>
</RelativeLayout>
有人請在這裏列出所有可能的原因嗎?
更新: 有什麼方法可以知道屏幕上現在有什麼樣的佈局,它們有什麼順序(有些佈局是透明的)?
+1問一些有趣的和新的東西。 – 2012-01-11 10:06:15
可能一些需要的方法是ovverriden。在這個代碼中有很多自定義元素和其他自行車:(我只是不知道在哪裏看。 – 2012-01-11 11:04:22