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

Circular bounding layout #21

Open
ghost opened this issue Nov 29, 2016 · 5 comments
Open

Circular bounding layout #21

ghost opened this issue Nov 29, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2016

Maybe I'm missing it, but there does not appear to be a way to create a PhysicsFrameLayout (or other layout) that's boundary is a circle. I'm looking to put circle views inside a circular bounding layout. Is there a way to do this?

@Jawnnypoo
Copy link
Owner

Yes, this is not currently supported, but it is an interesting idea. You could achieve something similar by flagging the layout to not have bounds and to manually create circular bounds yourself as an "invisible" view within the layout

@ghost
Copy link
Author

ghost commented Nov 29, 2016

Thanks for getting back to me! How would I go about creating a circular bounds within the layout? Is this something I would have to do manually using Box2D or is it something that could be achieved with your library? Sorry, I'm not trying to get you to code my solution or anything... just wanted some clarification. If you could point me in the right direction it would be appreciated.

@Dhameliya
Copy link

Dhameliya commented Jun 10, 2020

@ghost
Hi, i am using PhysicsLayout for bounding view or animate view, but i want circle boundary instead of rectangle, is there any solution for achieve boundary with circle?

@Ein-xinlong
Copy link

@ghost 你好,我正在使用 PhysicsLayout 作为边界视图或动画视图,但我想要圆形边界而不是矩形,有没有解决方案可以实现圆形边界?

I also have this requirement here. Do you have a solution? Thank you

@Ein-xinlong
Copy link

Thanks for getting back to me! How would I go about creating a circular bounds within the layout? Is this something I would have to do manually using Box2D or is it something that could be achieved with your library? Sorry, I'm not trying to get you to code my solution or anything... just wanted some clarification. If you could point me in the right direction it would be appreciated.

I also have this requirement here. Do you have a solution? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants