Baseflow / Baseflow/PhotoView

why setRotationTo() is not worked when I use addView()

Open
#376 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.