简体   繁体   English

android studio中是否有可以向各个方向无限扩展的布局?

[英]Is there a layout in android studio that is able to infinitely expand in every direction?

I'm relatively new to coding, especially with android(xml,java). 我是编码的新手,尤其是android(xml,java)。
I had an idea for an app but it appears that it requires a layout that I can't seem to find. 我有一个应用程序的主意,但似乎需要一个我似乎找不到的布局。

So what I'd need is a layout that starts out with the screen size and dynamically expands in the given direction as the user drags along the screen. 因此,我需要的是一种布局,该布局从屏幕尺寸开始,并随着用户在屏幕上拖动而沿给定方向动态扩展。
In addition to that I want to be able to create objects(textview, imageview) at any given point on the layout which can also overlap as they can in Absolute- or RelativeLayout. 除此之外,我希望能够在布局上的任何给定点创建对象(文本视图,图像视图),这些对象也可以在Absolute-或RelativeLayout中重叠。
Those objects should dynamically be loaded and destroyed as they move in and out of view. 这些对象在移入和移出视图时应动态加载和销毁。

So I don't know if there's anything like this. 所以我不知道是否有这样的事情。
I've searched for quite a bit but only found layouts that were able to either scroll horizontally or vertically. 我已经搜索了很多,但是只发现了能够水平或垂直滚动​​的布局。
If anybody got an idea how I could possibly realize such a view, please let me know! 如果有人知道我怎么可能实现这种观点,请告诉我!

Best regards, BlackCert 最好的问候,BlackCert

In your case, doing everything manually through OpenGL seems appropriate. 在您的情况下,通过OpenGL手动执行所有操作似乎很合适。 You could render only the items that are visible and dont have to mess with Android getting painfully slow when dealing with huge layouts. 您可以仅渲染可见的项目,而不必与Android混淆,在处理庞大的布局时会变得非常缓慢。 Set-Up a 2D scene and write rendering code for each kind of item you want to display. 设置2D场景并为要显示的每种项目编写渲染代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM