WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Hint for buttons on android

for

Number of posts in this thread: 4 (In chronological order)

From: Ajay Sharma
Date: Sat, May 02 2020 3:16PM
Subject: Hint for buttons on android
No previous message | Next message →

Thanks Joe and Mallory for your thoughts!

Just found out that with viewCompat it is possible to modify default "Double tap to activate" hint.

Although it is not possible to change the "Double tap to" string but it could be made more contextual by changing the action e.g. "Double tap to like".

From: Murphy, Sean
Date: Sun, May 03 2020 5:23PM
Subject: Re: Hint for buttons on android
← Previous message | Next message →

The below might be possible, but this is something Google should address in the API. Providing a Hint property via their accessibility API and linking it to TalkBack. Then the user can control if they want to hear hints or not. As a screen reader user, I would get rather annoyed hearing "double tap to like" each time I came across a control on the screen. Especially if it occurs multiple times on the same screen. I suspect you have thought of this, but will raise it anyway. Make sure it doesn't break the standard hint "Double Tap" anywhere else in the app.

The other thing to think of is if your label is descriptive enough. This is the way I would tackle it, rather than changing standard API properties.

Sean



Sean Murphy | Digital System specialist (Accessibility)
Telstra Digital Channels | Digital Systems
Mobile: 0405 129 739 | Desk: (02) 9866-7917

-----Original Message-----
From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of Ajay Sharma
Sent: Sunday, 3 May 2020 7:16 AM
To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] Hint for buttons on android

[External Email] This email was sent from outside the organisation – be cautious, particularly with links and attachments.

Thanks Joe and Mallory for your thoughts!

Just found out that with viewCompat it is possible to modify default "Double tap to activate" hint.

Although it is not possible to change the "Double tap to" string but it could be made more contextual by changing the action e.g. "Double tap to like".

From: Birkir R. Gunnarsson
Date: Mon, May 04 2020 5:39AM
Subject: Re: Hint for buttons on android
← Previous message | Next message →

How do you use viewCompat to change the spoken hint (after "double tap
to"), I am curious, could you post a code snippet?

On 5/3/20, Murphy, Sean < = EMAIL ADDRESS REMOVED = > wrote:
> The below might be possible, but this is something Google should address in
> the API. Providing a Hint property via their accessibility API and linking
> it to TalkBack. Then the user can control if they want to hear hints or not.
> As a screen reader user, I would get rather annoyed hearing "double tap to
> like" each time I came across a control on the screen. Especially if it
> occurs multiple times on the same screen. I suspect you have thought of
> this, but will raise it anyway. Make sure it doesn't break the standard hint
> "Double Tap" anywhere else in the app.
>
> The other thing to think of is if your label is descriptive enough. This is
> the way I would tackle it, rather than changing standard API properties.
>
> Sean
>
>
>
> Sean Murphy | Digital System specialist (Accessibility)
> Telstra Digital Channels | Digital Systems
> Mobile: 0405 129 739 | Desk: (02) 9866-7917
>
> -----Original Message-----
> From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of Ajay
> Sharma
> Sent: Sunday, 3 May 2020 7:16 AM
> To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
> Subject: Re: [WebAIM] Hint for buttons on android
>
> [External Email] This email was sent from outside the organisation – be
> cautious, particularly with links and attachments.
>
> Thanks Joe and Mallory for your thoughts!
>
> Just found out that with viewCompat it is possible to modify default
> "Double tap to activate" hint.
>
> Although it is not possible to change the "Double tap to" string but it
> could be made more contextual by changing the action e.g. "Double tap to
> like".
> > > http://webaim.org/discussion/archives
> > > > > >


--
Work hard. Have fun. Make history.

From: joe@a11yeval.com
Date: Mon, May 04 2020 6:40AM
Subject: Re: Hint for buttons on android
← Previous message | No next message

Hi Birkir,

https://blog.novoda.com/customising-usage-hints-for-android-talkback/

https://overflow.buffer.com/2018/09/05/announce-actions/

Above are some examples of how to do this as I have never created this functionality in an app myself with this technique.


To Ajay about your comment

Although it is not possible to change the "Double tap to" string but it could be made more contextual by changing the action e.g. "Double tap to like":

You cannot change the "Double tap to" because ViewCompat is changing the "click" and "LongClick" actions which always require a double tap gesture with TalkBack.

If you look at the second link, their "LongClick" action pulls up a menu of new options that are accessible to non-TalkBack users through a "tap and drag left/right" gesture

If you are using a custom gesture that is not a "Click" or "LongClick", you will have to create a custom AccessibilityEvent tracking that gesture and providing feedback to Android that can be passed to TalkBack. Creating this level of custom control is beyond my current knowledge.

Ref: https://developer.android.com/guide/topics/ui/accessibility/custom-views

Thankx,
Joe Humbert
Accessibility Champion
Android & iOS Accessibility Novice

-----Original Message-----
From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of Birkir R. Gunnarsson
Sent: Monday, May 4, 2020 7:40 AM
To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] Hint for buttons on android

How do you use viewCompat to change the spoken hint (after "double tap to"), I am curious, could you post a code snippet?

On 5/3/20, Murphy, Sean < = EMAIL ADDRESS REMOVED = > wrote:
> The below might be possible, but this is something Google should
> address in the API. Providing a Hint property via their accessibility
> API and linking it to TalkBack. Then the user can control if they want to hear hints or not.
> As a screen reader user, I would get rather annoyed hearing "double
> tap to like" each time I came across a control on the screen.
> Especially if it occurs multiple times on the same screen. I suspect
> you have thought of this, but will raise it anyway. Make sure it
> doesn't break the standard hint "Double Tap" anywhere else in the app.
>
> The other thing to think of is if your label is descriptive enough.
> This is the way I would tackle it, rather than changing standard API properties.
>
> Sean
>
>
>
> Sean Murphy | Digital System specialist (Accessibility) Telstra
> Digital Channels | Digital Systems
> Mobile: 0405 129 739 | Desk: (02) 9866-7917
>
> -----Original Message-----
> From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of
> Ajay Sharma
> Sent: Sunday, 3 May 2020 7:16 AM
> To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
> Subject: Re: [WebAIM] Hint for buttons on android
>
> [External Email] This email was sent from outside the organisation –
> be cautious, particularly with links and attachments.
>
> Thanks Joe and Mallory for your thoughts!
>
> Just found out that with viewCompat it is possible to modify default
> "Double tap to activate" hint.
>
> Although it is not possible to change the "Double tap to" string but
> it could be made more contextual by changing the action e.g. "Double
> tap to like".
> > > archives at http://webaim.org/discussion/archives
> > > > archives at http://webaim.org/discussion/archives
> >


--
Work hard. Have fun. Make history.