Disabling default focus from icons as we use an animated focus indicator
Change-Id: I9d3f1b5f5710ff8931f02f1a3a41e4986b4e0f9c
This commit is contained in:
1 parent
25a5472947
commit
c9d3d06773
3 files changed
+19
-8
No files matched your search
@@ -236,4 +236,19 @@ public abstract class FocusIndicatorHelper implements
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple subclass which assumes that the target view is a child of the container.
|
||||
*/
|
||||
public static class SimpleFocusIndicatorHelper extends FocusIndicatorHelper {
|
||||
|
||||
public SimpleFocusIndicatorHelper(View container) {
|
||||
super(container);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void viewToRect(View v, Rect outRect) {
|
||||
outRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user