Skip to content
New issue

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

如何获取中间的itemView的宽高 #4

Open
tdxtxt opened this issue Sep 28, 2018 · 3 comments
Open

如何获取中间的itemView的宽高 #4

tdxtxt opened this issue Sep 28, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@tdxtxt
Copy link

tdxtxt commented Sep 28, 2018

No description provided.

@wurensen
Copy link
Owner

目前没有提供获取ItemView宽高的接口。外部可以自己拿ItemView的引用,去获取宽高(注意时机)。你在什么场景,什么时机需要去获取宽高呢?

@tdxtxt
Copy link
Author

tdxtxt commented Sep 29, 2018

我使用场景是服务器给我一个宽高比固定的海报背景图片和一些原始的位置坐标,然后我自己生成一张二维码,根据服务器返回我的位置坐标 计算二维码的宽高和 起始坐标位置,将这个二维码嵌入到背景图片上。我想计算比例,所以需要得到中间itemView的宽高。

@wurensen
Copy link
Owner

那我后续把获取宽高的接口加上。

@wurensen wurensen self-assigned this Sep 29, 2018
@wurensen wurensen added the enhancement New feature or request label Sep 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants