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
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) }
}
The text was updated successfully, but these errors were encountered:
Is there any way to use 'rotation' with ViewPager?
Sorry, something went wrong.
No branches or pull requests
sample code:
class ImageAdapter(val context: Context, dataList: List?) : BannerAdapter<String, ImageAdapter.ImageViewHolder>(dataList) {
}
The text was updated successfully, but these errors were encountered: