I am hoping to position views within a parent view using percentages, similar to what is possible with absolute positioning in CSS. In my scenario, I will have a variable and unpredictable number of views that will be positioned this way.
Here is an example, which represents 3 TextViews inside a square with the following positions:
1: Top 55%, Left 29%
2: Top 77%, Left 58%
3: Top 54%, Left 43%
Is this best accomplished using custom drawing? Or is it possible to dynamically position views within a certain type of parent view given these percentages? If the former, how can I handle the text? And if the latter, what type of view should the parent be, and how should I go about setting these percentages?