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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:22:30+00:00 2026-06-10T10:22:30+00:00

I have created a widget fallowing multiple tutorials but I am having a bit

  • 0

I have created a widget fallowing multiple tutorials but I am having a bit of a problem getting the widget to fill the entire cell.

When I load the widget on a smaller screen like my Samsung Galaxy S it fills the entire cell space, but on my tablet there seems to be large margins or padding around the widget layout that prevent it from filling the entire cell, but many of my other widgets I have downloaded fill the entire 2×2 cell area on my tablet.

Here is code I am using for the widget size.

<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
    android:initialLayout="@layout/widget"
    android:minHeight="146dp"
    android:minResizeHeight="146dp"
    android:minResizeWidth="146dp"
    android:minWidth="146dp"
    android:resizeMode="horizontal|vertical"
    android:updatePeriodMillis="10000" >

</appwidget-provider>

And the code for the widget layout itself:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent" android:layout_height="match_parent"
    android:id="@+id/layout" android:background="@drawable/yellow">

    <TextView android:id="@+id/TextView01" android:layout_width="match_parent"
        android:layout_height="match_parent" style="@android:style/TextAppearance.Medium"
        android:layout_gravity="center" android:textColor="#000000"></TextView>

</LinearLayout>

I also tried adding this into the manifest but it did not fix the problem

<supports-screens
    android:smallScreens="true"
    android:normalScreens="true"
    android:largeScreens="true"
    android:xlargeScreens="true"
    android:anyDensity="true" />

What am I missing that would cause my widget not to fill the entire cell area on a tablet?

Screenshot of Widget Comparison

  • 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-10T10:22:31+00:00Added an answer on June 10, 2026 at 10:22 am

    Found the solution! You just have to add

    <uses-sdk android:targetSdkVersion="8" />
    

    into the manifest. Anything below targetSdk of 14 will work though and allow you to use the full cell area since the automatic padding to widgets wasn’t implemented until Android 4.0 – api 14.

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

Sidebar

Related Questions

I have created a widget in my application , now when a widget is
I have created an App Widget for Android 1.5. It uses a TextView to
I have created custom jQuery UI widget called uiPopover, very similar to UI-dialog (in
i have created a custom post type named Books & i have a widget
I have problem with Qt::Tool flag. When I create new widget with Qt::Tool flag
I have created a slideshow widget, using jQuery.UI widgets that works with window.setInterval. I
I am having some trouble theming a textarea. I have created a separate theme
I have this Drag Drop UI, here , created from this tutorial http://net.tutsplus.com/tutorials/javascript-ajax/inettuts/ I
We have created an application using Dojo with an clock on the UI. But
I have create a widget in android , whenever i click on Widget TextView

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.