We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: The circular view cut only from the LOLLIPOP version upwards.
Tip:
class: CircleVideoRecord
CircleVideoRecord
method:
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) private void cropViews() { ViewOutlineProvider vop = new ViewOutlineProvider() { @Override public void getOutline(View view, Outline outline) { outline.setOval(5, 5, view.getWidth() - 5, view.getHeight() - 5); } }; this.progressFrameLayout.setOutlineProvider(vop); this.progressFrameLayout.setClipToOutline(true); ViewOutlineProvider vop2 = new ViewOutlineProvider() { @Override public void getOutline(View view, Outline outline) { outline.setOval(10, 10, progressFrameLayout.getWidth() - 10, progressFrameLayout.getHeight() - 10); } }; mCameraView.setOutlineProvider(vop2); mCameraView.setClipToOutline(true); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem:
The circular view cut only from the LOLLIPOP version upwards.
Tip:
class:
CircleVideoRecord
method:
The text was updated successfully, but these errors were encountered: