Android Programming Press on the image to return to the main documentation page.

Accessibility

List of types:

Accessibility
Accessiblity

Accessibility

This library includes several accessibility related methods.
The SetNextFocus methods allow you to explicitly set the focus order. This order is important when the user navigates your
application with a directional controller (such as D-Pad).
SetContentDescription sets the content that will be used by accessibility services such as TalkBack to describe the interface.

Events:

None

Members:


  GetUserFontScale As Float

  SetContentDescription (View As android.view.View, Content As CharSequence)

  SetNextFocusDown (ThisView As android.view.View, NextView As android.view.View)

  SetNextFocusLeft (ThisView As android.view.View, NextView As android.view.View)

  SetNextFocusRight (ThisView As android.view.View, NextView As android.view.View)

  SetNextFocusUp (ThisView As android.view.View, NextView As android.view.View)

Members description:

GetUserFontScale As Float
Returns the user set font scale. The user can adjust this scale in the device Settings.
This scale is applied automatically to all text based views.
SetContentDescription (View As android.view.View, Content As CharSequence)
Sets the view's description. This text will be used by accessibility services to describe the view.
SetNextFocusDown (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the down key (and ThisView is focused).
Example:
Dim Access As Accessibility
Access.SetNextFocusDown(Button1, Button2) 'When the focus is on Button1 and the user presses on the down key,
'the focus will move to Button2.
SetNextFocusLeft (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the left key (and ThisView is focused).
SetNextFocusRight (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the right key (and ThisView is focused).
SetNextFocusUp (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the up key (and ThisView is focused).

Accessiblity

Same as Accessibility type but with a typo... Use Accessibility instead.

Events:

None

Members:


  GetUserFontScale As Float

  SetContentDescription (View As android.view.View, Content As CharSequence)

  SetNextFocusDown (ThisView As android.view.View, NextView As android.view.View)

  SetNextFocusLeft (ThisView As android.view.View, NextView As android.view.View)

  SetNextFocusRight (ThisView As android.view.View, NextView As android.view.View)

  SetNextFocusUp (ThisView As android.view.View, NextView As android.view.View)

Members description:

GetUserFontScale As Float
Returns the user set font scale. The user can adjust this scale in the device Settings.
This scale is applied automatically to all text based views.
SetContentDescription (View As android.view.View, Content As CharSequence)
Sets the view's description. This text will be used by accessibility services to describe the view.
SetNextFocusDown (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the down key (and ThisView is focused).
Example:
Dim Access As Accessibility
Access.SetNextFocusDown(Button1, Button2) 'When the focus is on Button1 and the user presses on the down key,
'the focus will move to Button2.
SetNextFocusLeft (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the left key (and ThisView is focused).
SetNextFocusRight (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the right key (and ThisView is focused).
SetNextFocusUp (ThisView As android.view.View, NextView As android.view.View)
Sets the next view that will get the focus when the user presses on the up key (and ThisView is focused).
Top