A problem that we face mostly
while developing Android application for Multiple screen i.e
designing layout such that it suits for multiple screen.In particular
situation we need to design two layout, one for portrait and another
for landscape.This tutorial going to focus about this.
For designing different layout for portrait
and landscape mode,you need to create folder in resource named
layout-land and put layout name same as then name of layout
inside layout folder.Now design layout inside layout-land for
landscape mode and inside layout folder for portrait mode.Write some code in AndroidManifest.xml
<activity android:configchanges="uiMode"
android:label="@string/app_name"
android:name=".SplashScreen"
android:screenorientation="sensor">Good luck
Comments
Post a Comment