I am new to mobile development - I have a LaunchScreen Storyboard and have a logo. How do I center the logo for all screen resolutions? Any link to help me out? Thanks in advance.
Hi @DennisAbraham,
Check out the Managing Launch Screens with Storyboards
section of our Launch Screens documentation. Specifically look at the sample app attached and you can see how we created a centered image.
If you are still having issues, please let me know.
Thanks,
Kevin
Answers
Hi @DennisAbraham,
Check out the Managing Launch Screens with Storyboards
section of our Launch Screens documentation. Specifically look at the sample app attached and you can see how we created a centered image.
If you are still having issues, please let me know.
Thanks,
Kevin
Thanks @KMullins!
Even with that link it was not straight forward but I will recap what I did after going through the link. (Just incase if it would help someone else)
Environment: Xamarin on Mac.
9 Add half of you width of logo to constraints (in my case 30)
Repeat for Y steps 8 and 9.
To test - just view as different sizes instead of generic and see if it centers.
@DennisAbraham - thank you for this.
I'm stuck on step 5 - adding the 2 constaints.. When I create these (by dragging the right hand edge to the right, and the top edge upwards) - resizing the view in the designer just leaves the image in place - it doesn't get centered. I am really not understanding this constraint milarky so far.. Could you perhaps provide more detail perhaps there is something I am missing?
Aha - nevermind - I found everything I needed to understand about constraints here: https://developer.xamarin.com/guides/ios/user_interface/designer/designer_auto_layout/
It turned out I wasn't actually creating the constraints, as I wasn't dragging the handle to the drop areas!