diff options
author | Tobias Dubois <tobias.dubois@sonyericsson.com> | 2010-12-15 11:35:30 +0100 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonymobile.com> | 2012-06-05 13:55:53 +0200 |
commit | defdb1e49172fe7c9737347489dbb77361af955a (patch) | |
tree | c1929a73343818bb938aaddaa1634c145cf61e42 /api | |
parent | 0748a5698776d1a9693a5449ffc983af26cc533b (diff) | |
download | frameworks_base-defdb1e49172fe7c9737347489dbb77361af955a.zip frameworks_base-defdb1e49172fe7c9737347489dbb77361af955a.tar.gz frameworks_base-defdb1e49172fe7c9737347489dbb77361af955a.tar.bz2 |
Add the possibility to modify the View focus rect
This change makes it possible for a view to supply a different rectangle than
the drawing rect to be used by the FocusFinder when finding a new view to give
focus to. This is useful if e.g. the total view area is larger than the
interactive area of the view.
The default implementation of getFocusRect() will return getDrawingRect().
The existing behaviour is only changed if getFocusRect() is overridden by a
subclass of android.view.View
Change-Id: I52dd95c6fa296b744e354217051dcec1bb3c8e92
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index d270ae0..b71a24c 100644 --- a/api/current.txt +++ b/api/current.txt @@ -23033,6 +23033,7 @@ package android.view { method public void getDrawingRect(android.graphics.Rect); method public long getDrawingTime(); method public boolean getFilterTouchesWhenObscured(); + method public void getFocusRect(android.graphics.Rect); method public java.util.ArrayList<android.view.View> getFocusables(int); method public void getFocusedRect(android.graphics.Rect); method public boolean getGlobalVisibleRect(android.graphics.Rect, android.graphics.Point); |