Navaneeth Sen
Navaneeth Sen

Reputation: 6466

How to create this layout?

I would like to design a layout for my android app which has imageviews/Textviews placed as shown in the figure below. alt text
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

Upvotes: 2

Views: 1006

Answers (2)

Mojo Risin
Mojo Risin

Reputation: 8142

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.

Upvotes: 1

DarkLeafyGreen
DarkLeafyGreen

Reputation: 70406

You should use 2D Graphics to draw shapes, 2D Graphics.

Upvotes: 1

Related Questions