Handling Different Screen Sizes3:45 with Ben Jakuben
This video highlights a problem running our app on devices with smaller screens. Fortunately, there are lots of ways to make an app work well and look good across different screen sizes.
If you'd like to explore setting portrait mode in code, try working through this example from StackOverflow and then proceed to the next video for a walkthrough.
- Create a custom Application class.
- Update the manifest to use this new custom class.
- Override the Application's
registerActivityLifecycleCallbacks()and override the
onActivityCreated()method in the anonymous inner class.
You need to sign up for Treehouse in order to download course files.Sign up