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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:16:31+00:00 2026-06-06T20:16:31+00:00

I have difficulties developing 4×1 widget for Android. This is the appprovider <?xml version=1.0

  • 0

I have difficulties developing 4×1 widget for Android.

This is the appprovider

<?xml version="1.0" encoding="utf-8"?> <appwidget-provider
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:minWidth="294dp"
    android:minHeight="72dp"
    android:initialLayout="@layout/main" />

And here is the main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="320dp"
    android:layout_height="100dp"
    android:gravity="center_vertical|center_horizontal"
    android:orientation="horizontal"> 
//content goes here
</LinearLayout>

I could see the widget but the size is 4×2. I confuse why I cannot have 4×1 widget size?

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-06T20:16:33+00:00Added an answer on June 6, 2026 at 8:16 pm

    I don’t think it’s a newbie mistake.. I’ve had an appWidget that was 1×1 cell in size. I set it to 72dp x 72dp, and it was working fine.. But it seems like Google changed the widget dimension sizing formula from

    (cells * 74) - 2
    

    to

    (cells * 70) - 30
    

    So now the default size of my widget has to be 40dp x 40dp..

    Source: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#anatomy_determining_size

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

Sidebar

Related Questions

I am developing an iPad version for my site and I have difficulties debugging
I'm having some difficulties with Ajax.BeginForm I have something like this in a view
I am having difficulties referencing all 3. I have already written my XML,XSD and
I have difficulties to use complex numbers in cuda,pycuda. I have this in C:
I am developing a GUI application in Qt, and I have some difficulties embedding
I am developing an in app billing application for Android In this sample ,
I have difficulties comparing the date from my android os to a date stored
I am new in JavaScript and I have difficulties fixing this. There are three
I am developing a javascript filtering of some results and have some difficulties.. Here
I am developing an HTML5 player on Windows, but I have some real difficulties

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.