Hi
Just have a query I have created variant specific script for portrait and for landscape when the phone/emulator is connected to the designer it displays correctly for both portrait and landscape layouts but once I debug or release the application the landscape variant does not work when the phone/emulator is rotated the activity still uses the portrait specific script.
Here is the code from both orientations
What have i done wrong??
Thnx
Just have a query I have created variant specific script for portrait and for landscape when the phone/emulator is connected to the designer it displays correctly for both portrait and landscape layouts but once I debug or release the application the landscape variant does not work when the phone/emulator is rotated the activity still uses the portrait specific script.
Here is the code from both orientations
B4X:
'Variant specific script: 480x800,scale=1
Panel2.Width = 100%x
Panel2.Height = 100%y
btnWorkout.HorizontalCenter = 50%x
btnFitTest.HorizontalCenter = 50%x
btnProfile.HorizontalCenter = 50%x
btnCalendar.HorizontalCenter = 50%x
btnSettings.HorizontalCenter = 50%x
btnProfile.VerticalCenter = 70%y
btnFitTest.Bottom = btnProfile.Top
btnWorkout.Bottom = btnFitTest.Top
btnCalendar.Top = btnProfile.Bottom
btnSettings.top = btnCalendar.Bottom
ImageView1.HorizontalCenter = 50%x
ImageView1.Top = 10dip
Label2.HorizontalCenter = 50%x
Panel1.HorizontalCenter = 50%x
Panel1.VerticalCenter = 35%y
Label2.Bottom = 100%y - 2dip
ScrollTips.Width = 100%x
ScrollTips.Height = 100%y
ScrollTips.HorizontalCenter = 50%x
ScrollTips.VerticalCenter = 50%y
Label1.HorizontalCenter = 50%x
Label18.Bottom = 100%y - 5dip
btnhelp.Bottom = 100%y - 5dip
B4X:
'Variant specific script: 800x480,scale=1
ImageView1.HorizontalCenter = 30%x
ImageView1.VerticalCenter = 25%y
btnWorkout.HorizontalCenter = 77%x
btnFitTest.HorizontalCenter = 77%x
btnProfile.HorizontalCenter = 77%x
btnProfile.VerticalCenter = 50%y
btnCalendar.HorizontalCenter = 77%x
btnSettings.HorizontalCenter = 77%x
btnFitTest.Bottom = btnProfile.Top
btnWorkout.Bottom = btnFitTest.Top
btnCalendar.Top = btnProfile.Bottom
btnSettings.Top = btnCalendar.Bottom
Label2.HorizontalCenter = 50%x
Label3.HorizontalCenter = Panel1.Width / 2
Label4.HorizontalCenter = Panel1.Width / 2
Label4.VerticalCenter = Panel1.Height / 2
Panel1.HorizontalCenter = 28%x
Panel1.VerticalCenter = 70%y
ScrollTips.Width = 100%x
ScrollTips.Height = 100%y
ScrollTips.HorizontalCenter = 50%x
ScrollTips.VerticalCenter = 50%y
Panel3.Width = 100%x
Panel3.Height = 100%y
Panel3.HorizontalCenter = 50%x
Panel3.VerticalCenter = 50%y
Label1.HorizontalCenter = 50%x
Label2.Bottom = 100%y - 5dip
Label18.Bottom = 100%y - 5dip
btnhelp.Bottom = 100%y - 5dip
What have i done wrong??
Thnx