As I stated on my original post, that code works ON ANY SCREEN SIZE AND RESOLUTION, so, what you are saying in #1 is wrong.
Now, on your sample you only have PANELS, so, then again the code I posted is right, HOWEVER, you are adding views to them (ImageView, Button, etc) and that is where you are wrong again, if you are adding views to those panels you must also position/scale those views accordingly in relation to the panels dimensions, you have to use the scripts to sized them properly.