Note that there are some explanatory texts on larger screens.

plurals
  1. POList View Footer Background on Android 2.3.3
    primarykey
    data
    text
    <p>This one is weird. I have a list view that is a part of Relative Layout. I have set a background to this Relative Layout and made list view background as transparent. </p> <p>Now, everything was working great till this morning. I could see the whole screen covered with my custom background even if there is just one row in my list view.</p> <p>Then, I got update on Verizon Motorola Droid X for 2.3.3 (it was 2.2 before). Once it was updated, I started my app again and now here is what happens.</p> <p>If my list view has only one row, I see a white area below it and not my custom background. But if it has say 100 rows and thus covers the whole screen I won't see that weird white background. My relative layout has width and height set to "fill_parent".</p> <p>I have posted my XML at the bottom. Has anyone else faced this problem or I am making some really stupid mistake.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background = "@drawable/background" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;ListView android:id = "@+id/listQueue" android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:layout_below = "@id/homeScreenBanner" android:background="@android:color/transparent" android:divider="@drawable/separator" android:scrollingCache="false"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>EDIT:</p> <p>I think I have found the solution to this problem:</p> <p>Changed the layout_height attribute to wrap_content and it worked like a charm. :)</p> <p>Following the changed line. <code>android:layout_height = "wrap_content"</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload