1. Are you ready for the Galaxy S20? Here is everything we know so far!

Screen Orientation is not changing in Manifest file.

Discussion in 'Android Development' started by geekyandroid, Aug 24, 2017.

  1. geekyandroid

    geekyandroid Lurker
    Thread Starter

    I am not getting the desired output. Please correct me where I am wrong. thank you.

    <activity
    android:name=".Main2Activity"
    android:label="@String/app_name"
    android:theme="@Style/AppTheme.NoActionBar">
    android:screenOrientation="Landscape">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />

    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
     


  2. Deleted User

    Deleted User Guest

    Is your layout XML file in the layout-land folder?
     
    sweetndreemy73 likes this.
  3. geekyandroid

    geekyandroid Lurker
    Thread Starter

    Problem resolved. anyway. thanks for reply
     
    Deleted User likes this.
Loading...
Similar Threads - Screen Orientation changing
  1. Michael VanBuskirk
    Replies:
    8
    Views:
    198
  2. mumbe Arubernus
    Replies:
    6
    Views:
    161
  3. jaffacake2000
    Replies:
    2
    Views:
    130
  4. AppleUser
    Replies:
    6
    Views:
    161
  5. Socialhacker
    Replies:
    8
    Views:
    205
  6. odatkid
    Replies:
    7
    Views:
    528
  7. nicecap
    Replies:
    2
    Views:
    228
  8. lopa77665
    Replies:
    4
    Views:
    189
  9. Ywtani
    Replies:
    2
    Views:
    165
  10. OM2
    Replies:
    4
    Views:
    410

Share This Page

Loading...