why setRotationTo() is not worked when I use addView()
- Dominant language
- Java
- Stars
- 18.8k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Description
```
RelativeLayout.LayoutParams layoutParams1 =
new RelativeLayout.LayoutParams(calculate(entity.getHeight(), screenHeight),
calculate(entity.getHeight(), screenHeight));
layoutParams1.leftMargin = calculateMargin(entity.getCenterX(), entity.getWidth(), screenWidth);
layoutParams1.topMargin = calculateMargin(entity.getCenterY(), entity.getHeight(), screenHeight);
PhotoView photoView = new PhotoView(this);
BitmapUtils.loadBitmapWithGlide(this, imagesEntities.get(i).getImage(), photoView);
rootView.addView(photoView, layoutParams1);
photoView.setRotationTo(30f);
```
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.