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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:21:35+00:00 2026-06-03T07:21:35+00:00

I have a ListVie w inside an AppWidget . Each row of the ListView

  • 0

I have a ListView inside an AppWidget. Each row of the ListView has a custom layout, AppWidget specifies a minHeight, as required. The problem is that ListView exceeds the dimensions of the AppWidget, and some rows simply hang below the widget boundaries.

I have tried everything I could think of, fixing the height of ListView, using match_parent and/or wrap_content or rows and ListView, but I have not been able to fix this.

Has someone else faced this problem? How do I make the ListView fit inside the widget boundaries and scroll, instead of rows getting outside the boundary?

  • 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-03T07:21:37+00:00Added an answer on June 3, 2026 at 7:21 am

    Well I have root-caused the issue, and I am to blame here, at least partly.

    I am asked to use a custom background for the ListView, and the 9-patch I received had a shadow drawn below the ‘content’ background. Android used the whole png for drawing the background, lending an appearance of ‘one row hanging off the content’ appearance to the widget.

    I verified this by using a solid color as background – it extends properly to cover entire ListView.

    My learning:
    1. The minWidth and minHeight attributes for the widget are exactly what they say; Android WILL give more space to the widget if it can. 🙂
    2. You’ve specified “minimum” width, and your actual width is being determined by the width of a child View. Given that such a case could be common, setting the top-level layout width and height to wrap_content in the widget’s main view seems a reasonable thing to do.

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

Sidebar

Related Questions

I have a ListView inside a AlertDialog, the problem I am having is that
I have a ListView inside a Linearlayout. The listview has a custom cursoradapter. Everything
I have a Listview with a custom ArrayAdapter that is set inside of a
I have a custom ArrayAdapter set to a listView . Inside each element of
I have a custom dialog which extends Dialog and has a ListView inside its
I have a ListView where each row has a fixed height. Every row contains,
I have a ListView that I'm populating from a custom ListAdapter . Inside the
I have a ListView composed of LinearLayouts. Inside each is an ImageView, TextView and
I have ListView that has the following EditItemTemplate: <EditItemTemplate> <tr style=> <td> <asp:LinkButton ID=UpdateButton
I have a ListView inside a FormView that, for some strange reason, doesn't fire

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.