Android: allow portrait and landscape for tablets but force portrait on phone?
🆕 Last Update : 27 September, 2022 📅
3 min readNov 14, 2019
Hello Everyone, 🙋🏻♂️
I want to talk about a situation that I encountered while developing an Android application. This is a different article. I will explain the solution of a problem that I have encountered.
I want to use portrait mode on Android phones and both portrait and landscape mode on tablets. I started researching how to do it.
I found a very nice answer on StackOverflow site:
We will do the solution by following the steps there.
I recommend that you examine the structures that should be considered when developing an Android application.