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 8619151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:16:29+00:00 2026-06-12T06:16:29+00:00

I have a layout file present for specifically layout-normal-land normal landscape screens, for every

  • 0

I have a layout file present for specifically layout-normal-land normal landscape screens, for every other screen size and orientation I want to use the default layout folder –

But, screen sizes higher than normal will now use normal-land as the closest fit resource rather than falling back to default.

I could just add the resource into layout-large-land but this then means (since I want to use this same layout file for portrait screens of all sizes) I would have to make a duplicate copy of the layout file in layout as well.

Can someone tell me how to get around duplicating this file?

  • 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-12T06:16:31+00:00Added an answer on June 12, 2026 at 6:16 am

    I’m hoping this isn’t the best case scenario:

    Using @PadmaKumar s comment I’m using layout-alias to “override” the id used to load resource in default and large-land instances:

    I have this structure instead:

    layout/
        fragment_layout_default.xml
    layout-normal-land/
        fragment_layout.xml
    values/
        layout.xml
    values-large-land/
        layout.xml
    

    where as the contents of the layout.xml in values and values-large-land contain:

    @layout/fragment_main_menu_default

    This stops me from code duplications but still seems a bit… -ick-

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

Sidebar

Related Questions

In the manifest file of this application, I have specified the screen orientation to
I have layout file which I'm inflating dynamically on the screen. Then in my
i am designing an app for android tablets. I have created a layout file
I have the following XML layout file, HELPME.XML <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent
I have a checkbox in the Android layout file. When the checkbox is clicked
I have the following TextView in my XML layout file:- <TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/autolink_test
I have custom component that I can place in my layout file (XML) for
I have very strange issues in my application. I added a layout file with
So I have a layout that is a separate file, so I inflate it.
I have <.ImageView> enter code here s(icons) in my android layout xml file, which

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.