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
Error occurs on https://www.gsmarena.com/oneplus_5t-8912.php cropiwa settings:
app:ci_aspect_ratio_h="4" app:ci_aspect_ratio_w="3" app:ci_border_color="@color/colorAccentGreen" app:ci_border_width="4dp" app:ci_crop_scale="0.75" app:ci_crop_shape="rectangle" app:ci_draw_grid="false" app:ci_dynamic_aspect_ratio="false" app:ci_scale_enabled="true" app:ci_translation_enabled="true"
Problem in method CropiwaOverlayView>setCropRectAccordingToAspectRatio()
boolean calculateFromWidth = aspectRatio.getHeight() < aspectRatio.getWidth() || (aspectRatio.isSquare() && viewWidth < viewHeight); if (calculateFromWidth) { halfWidth = viewWidth * cropScale * 0.5f; halfHeight = halfWidth / aspectRatio.getRatio(); } else { halfHeight = viewHeight * cropScale * 0.5f; halfWidth = halfHeight * aspectRatio.getRatio(); } cropRect.set( centerX - halfWidth, centerY - halfHeight, centerX + halfWidth, centerY + halfHeight);
calculate as 2160×0.75×3/4 = 1215. This is more than 1080 width this phone (screen ratio 18:9)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error occurs on https://www.gsmarena.com/oneplus_5t-8912.php
cropiwa settings:
Problem in method CropiwaOverlayView>setCropRectAccordingToAspectRatio()
calculate as 2160×0.75×3/4 = 1215. This is more than 1080 width this phone (screen ratio 18:9)
The text was updated successfully, but these errors were encountered: