My question is very simple. Which is more efficient: setting a views width's or height's percentage from JAVA code, by getting the phones pixel count and calculating the number of pixels needed for the desired width or height, or put everything in a LinearLayout and set the weight of the view.
NOTE: Sometimes the views need to have margins, which are also specified in percentages.