Skip to content

Commit 7dc3d82

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Adding a couple of missing accessibility focus directions."
2 parents 9392ad2 + d6e716d commit 7dc3d82

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

api/current.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24080,7 +24080,9 @@ package android.view {
2408024080
field public static final int ACCESSIBILITY_FOCUS_FORWARD = 4098; // 0x1002
2408124081
field public static final int ACCESSIBILITY_FOCUS_IN = 4100; // 0x1004
2408224082
field public static final int ACCESSIBILITY_FOCUS_LEFT = 4113; // 0x1011
24083+
field public static final int ACCESSIBILITY_FOCUS_NEXT = 4112; // 0x1010
2408324084
field public static final int ACCESSIBILITY_FOCUS_OUT = 4104; // 0x1008
24085+
field public static final int ACCESSIBILITY_FOCUS_PREVIOUS = 4128; // 0x1020
2408424086
field public static final int ACCESSIBILITY_FOCUS_RIGHT = 4162; // 0x1042
2408524087
field public static final int ACCESSIBILITY_FOCUS_UP = 4129; // 0x1021
2408624088
field public static final android.util.Property ALPHA;

core/java/android/view/View.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,12 +1045,12 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
10451045
public static final int ACCESSIBILITY_FOCUS_DOWN = FOCUS_DOWN | FOCUS_ACCESSIBILITY;
10461046

10471047
/**
1048-
* Use with {@link #focusSearch(int)}. Move acessibility focus to the next view.
1048+
* Use with {@link #focusSearch(int)}. Move acessibility focus forward.
10491049
*/
10501050
public static final int ACCESSIBILITY_FOCUS_FORWARD = FOCUS_FORWARD | FOCUS_ACCESSIBILITY;
10511051

10521052
/**
1053-
* Use with {@link #focusSearch(int)}. Move acessibility focus to the previous view.
1053+
* Use with {@link #focusSearch(int)}. Move acessibility focus backward.
10541054
*/
10551055
public static final int ACCESSIBILITY_FOCUS_BACKWARD = FOCUS_BACKWARD | FOCUS_ACCESSIBILITY;
10561056

@@ -1064,6 +1064,16 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
10641064
*/
10651065
public static final int ACCESSIBILITY_FOCUS_OUT = 0x00000008 | FOCUS_ACCESSIBILITY;
10661066

1067+
/**
1068+
* Use with {@link #focusSearch(int)}. Move acessibility focus to the next view.
1069+
*/
1070+
public static final int ACCESSIBILITY_FOCUS_NEXT = 0x00000010 | FOCUS_ACCESSIBILITY;
1071+
1072+
/**
1073+
* Use with {@link #focusSearch(int)}. Move acessibility focus to the previous view.
1074+
*/
1075+
public static final int ACCESSIBILITY_FOCUS_PREVIOUS = 0x00000020 | FOCUS_ACCESSIBILITY;
1076+
10671077
/**
10681078
* Bits of {@link #getMeasuredWidthAndState()} and
10691079
* {@link #getMeasuredWidthAndState()} that provide the actual measured size.

0 commit comments

Comments
 (0)