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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:53:29+00:00 2026-06-04T15:53:29+00:00

I have added widget functionality to my app, which is compatible with older versions

  • 0

I have added widget functionality to my app, which is compatible with older versions of Android (back to 1.6). Widgets in Android 3.1+ support the xml tag resizeMode which is a very useful feature and I’d like to allow users to resize their widgets.

But I’d like to still be backwards compatible with 1.6 (or 2.1 would be good enough too).

How can I do this? Can I have selective xmls?

Currently I am tagetting 1.6.

Thanks!

  • 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-04T15:53:30+00:00Added an answer on June 4, 2026 at 3:53 pm

    You can put resources that are intended for more recent API levels in resource directories that are qualified by the minimum API level supported. For instance, you could have the 1.6 version of the xml files in res/layout and put the 3.1+ versions in res/layout-v12 (the “-v12” resources will only be considered when running under Android 3.1 and later, regardless of what the target level is). You can apply these qualifiers (as described here) to any resource type, not just layouts.

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

Sidebar

Related Questions

I have a JS script (widget) which is added to other websites. Technically its
Hey, I just added a Widget to my Android App but when I now
I have developed an Android Widget, and it was working fine. I added some
I have added 2 Widgets to my app. However if user moves the app
I have added a new job in my hudson server which builds the project
I have added 4 activities to a tabhost widget. These work fine. The problem
How to start an activity after the animation has ended. I have added android:oneshot=true
I have a QVBoxLayout that I've added a few widgets to, via addWidget() .
I have an Android widget that has a configure activity. I also have an
I have text widgets that can be added on the page. A click should

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.