android.view
Class FocusFinderHelper
java.lang.Object
android.view.FocusFinderHelper
public class FocusFinderHelper
- extends Object
A helper class that allows unit tests to access FocusFinder methods.
|
Method Summary |
boolean |
beamBeats(int direction,
Rect source,
Rect rect1,
Rect rect2)
|
boolean |
beamsOverlap(int direction,
Rect rect1,
Rect rect2)
|
boolean |
isBetterCandidate(int direction,
Rect source,
Rect rect1,
Rect rect2)
|
boolean |
isCandidate(Rect srcRect,
Rect destRect,
int direction)
|
static int |
majorAxisDistance(int direction,
Rect source,
Rect dest)
|
static int |
majorAxisDistanceToFarEdge(int direction,
Rect source,
Rect dest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FocusFinderHelper
public FocusFinderHelper(FocusFinder focusFinder)
- Wrap the FocusFinder object
isBetterCandidate
public boolean isBetterCandidate(int direction,
Rect source,
Rect rect1,
Rect rect2)
beamBeats
public boolean beamBeats(int direction,
Rect source,
Rect rect1,
Rect rect2)
isCandidate
public boolean isCandidate(Rect srcRect,
Rect destRect,
int direction)
beamsOverlap
public boolean beamsOverlap(int direction,
Rect rect1,
Rect rect2)
majorAxisDistance
public static int majorAxisDistance(int direction,
Rect source,
Rect dest)
majorAxisDistanceToFarEdge
public static int majorAxisDistanceToFarEdge(int direction,
Rect source,
Rect dest)
Please submit a feedback, bug or feature