setRotationBy setRotationTo does not work with ViewPager
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 32/100
Research direction
Start by reproducing the sample with PhotoView inside the shown BannerAdapter and a ViewPager, checking both setRotationBy and setRotationTo. Trace the PhotoView rotation entry points and ViewPager interaction, then verify that the requested rotation methods work when the image is hosted in the pager.
Written by the indexing model from the issue text.
Description
sample code:
class ImageAdapter(val context: Context, dataList: List?) : BannerAdapter<String, ImageAdapter.ImageViewHolder>(dataList) {
class ImageViewHolder(val imageView: PhotoView) : RecyclerView.ViewHolder(imageView)
override fun onCreateHolder(parent: ViewGroup, viewType: Int): ImageViewHolder {
val imageView = PhotoView(context)
imageView.layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
imageView.scaleType = ImageView.ScaleType.CENTER_CROP
return ImageViewHolder(imageView)
}
override fun onBindView(
holder: ImageViewHolder,
data: String,
position: Int,
size: Int
) {
ImageUtils.displayLocal(context, File(data), holder.imageView)
holder.imageView.setRotationBy(20f)
}
}
- Dominant language
- Java
- Stars
- 18.8k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Baseflow/PhotoView
-
PohenOpen
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
KhanOpen
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
.Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
842Open
Difficulty 1/5 Under an hour Newbie friendliness 10/100
-
OkOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
All issues in Baseflow/PhotoView
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
grimmory-tools/grimmory#2850 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
aoqia194/leaf-loader#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/streampark#4521 ·
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100