01-21-2013 12:22 PM
So I'm quite new in QML and was wondering the correct way to achieve this kind of layout. I would like to show an Image like a background and would like another image on top of that image so it give the effect of a contour.
Here's what I think I create a container of layout StackLayout then I have 2 image the bottom one is larger in size then the other one is smaller.
Thank you for the help
Solved! Go to Solution.
01-21-2013 12:34 PM
01-21-2013 12:43 PM
Page {
Container {
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
Container {
layout: DockLayout {}
rightPadding: 100
leftPadding: 100
topPadding: 100
bottomPadding: 100
ImageView {
imageSource: "asset:///images/White.png"
horizontalAlignment: HorizontalAlignment.Center
}
ImageView {
imageSource: "asset:///images/48.png"
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
}
}
}
}This is what I came up with. Is this how it's suppose to be done?
01-21-2013 01:00 PM
01-21-2013 01:02 PM
01-21-2013 01:23 PM - edited 01-21-2013 01:23 PM
I did try it and I know it worked, was just wondering if it was the correct way to go or I was just lucky.