I want to create a full screen page that looks like this:
---------------------------------------
| -------- --------------------------- |
|| || TextView ||
|| | --------------------------- |
|| Image | ----------------- -------- |
|| View || || ||
|| || TextView || ||
|| || || Image ||
|| || || View ||
| -------- ----------------- | ||
| --------------------------- | ||
|| TextView || ||
| --------------------------- -------- |
---------------------------------------
where each ImageView occupies no more than 20% of the width of the parent layout.
Primary question: Indeed ... what is the best way to do this? After hours of searching, the best idea I can come up with is to get the width of the screen and just set the width of the views to at least 20% of this. However, this does not intuitively sound like a better solution. (For example, if the application does not work in full screen mode, this solution will not work.) LinearLayout will not work with the way the page is laid out (it appears that I should use RelativeLayout). And I think it would be preferable to set the width of the views based on the width of the parent's view (as opposed to the screen width), but I don’t understand how to do it, because at the time I'm trying to set the width of the views of my children, parentView. getWidth () returns 0. Does anyone have a good one,clean page creation solutions as shown above?
: - , , ? ; , . , ?
, .