The height of the inner panel in the case of horizontal scroll view is maintained by the scroll view. It fills the available space. You cannot modify it.
Because English is not my best languague I think I didn't describe it good enough.But it is solved.
I don't want to modify the inner panel height. I just need a layout with the same height for loading into the inner panel.
And I made it the same height. But it looks wierd. The layout inside the scrollview is smaller. Why?
Now i Know it:
It was not the layout inside being smaller. No!, the main layout was bigger! All views (including the scrollview) where bigger. +1.33x bigger. Because the layout loaded into the scrollview was not enlarged, it looks small according to the outside views on the main layout.
Now the new issue was, why is the main layout bigger as defined. I entered a value of 330 for the scrollview outside height.
On the tabletscreen it was placed at 439pixels. Infact every view was 1.33x bigger on runtime.
That is because the tablet has 1280x736 pixels screen and the layout was set to 960 x 552 scale 1.0 (according factor 1.33)
Ok... Why was the layout set to a variant of 960x552? That is because this seems to be the equivalent value with scale 1 for my tabletthat has standaard a 1.33125 scale.
Creating a new variant with the original dimensions 1280 x 736 at scale 1.33125 solved the problem. I only had to ignore the warning about normalizing the scale to 1.0. At least in this case: It is now working without any other change in code or design.
Thanks for your help, Klaus and Erel.
Best regards,
Marc