What exactly do you want to do ?
You have layout1 with one layout variant 1024 * 768 AutoScaleRate(1) and AutoScaleAll.
Then layout2 with two layout variants 1024 * 768 and 568 * 320 and only AutoScaleAll which means AutoScaleRate(0.3) the defalt value.
Then you add a view in code.
You should define the dimensions of the view, added in the code, in the Page_Resize routine only ther 100%x and 100%y are known.