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

  • Home
  • SEARCH
  • 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 561695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:28:35+00:00 2026-05-13T12:28:35+00:00

In addition to the general res/layout folder I have a res/layout-v3 folder for backward

  • 0

In addition to the general res/layout folder I have a res/layout-v3
folder for backward compatibility with Android 1.5, which has problems
with some RelativeLayout layouts.

It works perfectly with all phones and emulator versions tested so
far. Except of 2.1 (emulator and Nexus One). They choose to display
the Android 1.5 layout (res/layout-v3) instead of the default res/
layout
.

Can anyone else confirm that? Is this an Android OS bug? If so, where
is the best place to submit the bug report?


UPDATE:

After reading up on https://developer.android.com/guide/practices/screens_support.html#qualifiers again (thanks Mark for the hint), especially this part

Resources that are for use only on a
specific API Level or higher. For
example, if your application is
designed to run on both Android 1.5
(API Level 3) and Android 1.6 (API
Level 4 and higher), you can use the
-v4 qualifier to tag any resources that should be excluded when your
application is running on Android 1.5
(API Level 3).

I changed my layout order from having

  • res/layout-v3 (for Android 1.5 only -> this was a wrong assumption I made)
  • res/layout (for anything else)

to my new configuration of having:

  • res/layout-v4 (for Android 1.6 and higher)
  • res/layout (for anything else -> in this case this would be Android 1.5 only)

If I understand the above documentation right and if my assumptions in the parentheses are correct this time it should work now. However, the result is the following:

  • Android 1.5 is using res/layout -> OK
  • Android 1.6 is using res/layout-v4 -> OK
  • Android 2.0 is using res/layout -> NOT OK
  • Android 2.1 is using res/layout-v4 -> OK

So why is Android 2.0 (on both Emulator and Motorola Milestone) not picking the right layout resource folder?

I tested it then again with 2.0.1 and it seems to work there. So that seems to be a bug in 2.0 which got fixed in 2.0.1

But now the weirdest thing: in order to make it somehow run on 2.0 I copied the res/layout-v4 folder to res/layout-v5 to force Android 2.0 using this layout resource. Didn’t work. But then I tried copying it to res/layout-v6 (which is supposed to be Android 2.0.1) and voilà all the sudden it works with 2.0. Very strange! But I hope this workaround will help a few other people out there.

  • 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-05-13T12:28:36+00:00Added an answer on May 13, 2026 at 12:28 pm

    I’ve tested several devices and emulators (although not very thoroughly), and it seems that the selected resource folder is the one with the higher version <= device version.

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

Sidebar

Related Questions

How to convert a Dictionary to a SortedDictionary? In addition to general conversion (preserving
I have a fairly simple addition to the HTTP standard. An ambitious goal I
I'm working on a general-purpose programming language. In addition to the modern requirement of
I have 2 classes which represent a matrix: 1. RegularMatrix - O(n^2) representation 2.
$5.7 - [..]For addition, either both operands shall have arithmetic or enumeration type, or
InstallShield Limited Edition comes as free addition to Visual Studio 2010 users. It has
I have this script that I'd like to in addition save as a xls
I have written a static library to re-use some code between iOS projects, let's
I have an application which needs to get intraday stock quotes on several assets
In addition, are there any performance advantages to static methods over instance methods? I

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.