Disabling default focus from icons as we use an animated focus indicator

Change-Id: I9d3f1b5f5710ff8931f02f1a3a41e4986b4e0f9c
This commit is contained in:
Sunny Goyal
2018-03-22 12:18:08 -07:00
parent 25a5472947
commit c9d3d06773
3 changed files with 19 additions and 8 deletions

View File

@@ -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());
}
}
}