INNER CODE UNIT · Java
getOutlineProvider
florent37/ShapeOfView · shapeofview/src/main/java/io/github/florent37/shapeofview/ShapeOfView.java:208
public ViewOutlineProvider getOutlineProvider() {
return new ViewOutlineProvider() {
@Override
public void getOutline(View view, Outline outline) {
if (clipManager != null && !isInEditMode()) {
final Path shadowConvexPath = clipManager.getShadowConvexPath();
if (shadowConvexPath != null) {
try {
outline.setConvexPath(shadowConvexPath);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
};
}