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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:48:24+00:00 2026-05-27T17:48:24+00:00

I created an XML file for an AppWidget as shown below. xml/appwidget_4x1.xml <?xml version=1.0

  • 0

I created an XML file for an AppWidget as shown below.

xml/appwidget_4x1.xml

<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
    android:minWidth="@dimen/AppWidget_4Cell"
    android:minHeight="@dimen/AppWidget_1Cell"
    android:updatePeriodMillis="0"
    android:previewImage="@drawable/appwidget_4x1_preview"
    android:initialLayout="@layout/appwidget_4x1_loading"
    android:resizeMode="horizontal"
    android:minResizeWidth="@dimen/AppWidget_3Cell" />

The problem is in Android 1.6 it apparently doesn’t like me using the @dimen statements for the minWidth and minHeight. When this happens and the user drops an AppWidget on the screen it says, “No more room on this home screen.” If I use the dimensions explicitly it starts working again.

res/values/dimens.xml (1.6 – 3.2)

<dimen name="AppWidget_1Cell">72dp</dimen>
<dimen name="AppWidget_4Cell">294dp</dimen>

res/values-v14/dimens.xml (4.0+)

<dimen name="AppWidget_1Cell">40dp</dimen>
<dimen name="AppWidget_4Cell">250dp</dimen>

Is this a bug and if so what’s the work around for this? I did it this way to follow the recommendations for Ice Cream Sandwich’s new widget layout dimensions.

  • 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-27T17:48:24+00:00Added an answer on May 27, 2026 at 5:48 pm

    I just tried that and it happens also to me with Android 1.6.
    A quick fix is to create different xml folders (one for Android 1.6, and one for the other versions). So, you could have:

    xml-v4 (for Android 1.6), containing dimensions as numeric values
    xml-v5 (for the rest), containing dimensions as @dimen/..

    or, you could have:

    xml (for Android 1.6 – 3.2), containing dimensions as numeric values
    xml-v14 (for Android 4), containing the new dimensions

    What’s bad is that you have to duplicate your appwidget providers xml files, but at least it works.

    Mmm..I’m thinking about dropping support for Android 1.6…..(right now it’s at 1.3%…).

    Cheers,
    Yuvi

    http://www.droidahead.com

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

Sidebar

Related Questions

I have created the following vsct file xml. <?xml version=1.0 encoding=utf-8?> <CommandTable xmlns=http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable xmlns:xs=http://www.w3.org/2001/XMLSchema>
I created an App.config file in my WPF application: <?xml version="1.0" encoding="utf-8" ?> <configuration>
Here's an example of an XML file created in InfoPath: <?xml version=1.0 encoding=UTF-8?> <?mso-infoPathSolution
i have created xml file with the code shown below, XElement xml = new
I created a colors.xml file in my Android app under /res/values/colors.xml. The contents are...
I have a appwidget extends from appwidgetprovider. I have created a layout xml file
I created an xml file contains a webview. I hope to load http://www.google.com in
I tried created an XML file using below code. $xml = new SimpleXMLElement('<xml />');
I have a sample xml file created using Editplus( in windows). < ?xml version=1.0
In my android application i created and xml file in \res\layout\admin.xml the layouts 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.