Loading core/java/android/view/View.java +5 −8 Original line number Original line Diff line number Diff line Loading @@ -11648,14 +11648,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } } /** /** * When screen readers (one type of accessibility tool) decide what should be read to the * Sets whether this View should be a focusable element for screen readers * user, they typically look for input focusable ({@link #isFocusable()}) parents of * and include non-focusable Views from its subtree when providing feedback. * non-focusable text items, and read those focusable parents and their non-focusable children * <p> * as a unit. In some situations, this behavior is desirable for views that should not take * Note: this is similar to using <a href="#attr_android:focusable">{@code android:focusable}, * input focus. Setting an item to be screen reader focusable requests that the view be * but does not impact input focus behavior. * treated as a unit by screen readers without any effect on input focusability. The default * value of {@code false} lets screen readers use other signals, like focusable, to determine * how to group items. * * * @param screenReaderFocusable Whether the view should be treated as a unit by screen reader * @param screenReaderFocusable Whether the view should be treated as a unit by screen reader * accessibility tools. * accessibility tools. Loading
core/java/android/view/View.java +5 −8 Original line number Original line Diff line number Diff line Loading @@ -11648,14 +11648,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } } /** /** * When screen readers (one type of accessibility tool) decide what should be read to the * Sets whether this View should be a focusable element for screen readers * user, they typically look for input focusable ({@link #isFocusable()}) parents of * and include non-focusable Views from its subtree when providing feedback. * non-focusable text items, and read those focusable parents and their non-focusable children * <p> * as a unit. In some situations, this behavior is desirable for views that should not take * Note: this is similar to using <a href="#attr_android:focusable">{@code android:focusable}, * input focus. Setting an item to be screen reader focusable requests that the view be * but does not impact input focus behavior. * treated as a unit by screen readers without any effect on input focusability. The default * value of {@code false} lets screen readers use other signals, like focusable, to determine * how to group items. * * * @param screenReaderFocusable Whether the view should be treated as a unit by screen reader * @param screenReaderFocusable Whether the view should be treated as a unit by screen reader * accessibility tools. * accessibility tools.