如何创建这样的布局?布局

由网友(中系少女豆瓣酱)分享简介:结果我想设计一个布局我的Andr​​oid应用程序,如下面的图中有imageviews / Textviews放置。 结果眼下,我试图用绝对的布局,但我知道,这将造成问题随着屏幕尺寸的变化。结果请帮我你的想法。结果所有评论都欢迎。 I would like to design a layout for my andro...

结果我想设计一个布局我的Andr​​oid应用程序,如下面的图中有imageviews / Textviews放置。 结果眼下,我试图用绝对的布局,但我知道,这将造成问题随着屏幕尺寸的变化。结果请帮我你的想法。结果所有评论都欢迎。

I would like to design a layout for my android app which has imageviews/Textviews placed as shown in the figure below. Right now, i tried to use Absolute layout, but i know that will create problems as the screen size changes. Please help me with your ideas. All comments are welcomed.

感谢和放大器;问候,结果森

Thanks & Regards, Sen

推荐答案

嗯,我觉得我的做法会计算某些功能,将曲线(也许两个功能之一为黄色,一个绿色模型1 / -x似乎不错),然后画出圆圈中心坐标如x = F(X)。您可以通过简单的实现自定义视图做到这一点,重写的onDraw方法。

Hmm I think my approach will be to calculate some function that will model the curve (maybe two functions one for yellow and one for green 1/-x seems good) and then draw the circles with center coordinates like x = f(x). You can do this by simple implementing custom view and override onDraw method.

阅读全文

相关推荐

最新文章