Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8861037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:24:03+00:00 2026-06-14T15:24:03+00:00

Hi I already made two XML layout file with same name, one in layout

  • 0

Hi I already made two XML layout file with same name, one in layout folder and the other in layout-land.

I already add the configChanges tag in Manifest, like this:

<activity
    android:name=".Main"
    android:label="@string/title_activity_main"
    android:configChanges="orientation|screenSize" >
    ...
</activity>

The layout won’t change automatically after rotating my phone.

But when I started the app in Landscape orientation, it will use the layout-land xml and keep using it even after I rotated my phone into portrait. So, there is no error in the landscape code.

I’m using Android 4.1.2 for testing. Is this the problem?

Or do I need to add some code in the Activity class?

Thanks

[Update]

I tried this in freshly-made project. But the problem still the same

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:24:04+00:00Added an answer on June 14, 2026 at 3:24 pm

    Remove android:configChanges="orientation".

    Using this attribute means that you will handle the rotation yourself, but you want the OS to handle it for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made two games for the iPhone already, the first one was a
I have an XDocument class with the XML contents already made. I basically want
I have a problem creating and executing a JAR file. I have already made
I've made a yaml file like below. Define1: &Define1 0: zero 1: one Define2:
I have two XML documens with the following format: First document: <person> <name>David</name> </person>
I already made a game with flash builder 4, and I want to provide
I have already made an algorithm for the problem but it still got a
I edited an already-made example from the RXTX website. I am new in Java
I believe the question already made some sense. To explain further, a visual studio
I want to make new stackpanal from another stackpanal already made before but if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.