Note that there are some explanatory texts on larger screens.

plurals
  1. POListview item background image problem in my android application
    text
    copied!<p>I have in my application a listview with an adapter that uses different layouts for the items.</p> <p>I want the result to be like in the attached exp_result.png. <a href="http://imageshack.us/photo/my-images/717/expresult.png/" rel="nofollow">http://imageshack.us/photo/my-images/717/expresult.png/</a></p> <p>But unfortunatly - I get like in result.png. <a href="http://imageshack.us/photo/my-images/839/resultf.png/" rel="nofollow">http://imageshack.us/photo/my-images/839/resultf.png/</a></p> <p>The problem is that image stretches on the screen not the way I wanted. Any ideas?</p> <p>Maybe other solution to this layout - maybe built in?</p> <p>Drawables are in the links, since I cannot upload images. The original picture is like in the first listview item in the exp_result.png. I want to use 1 picture for each - top, buttom and middle and to be used no matter the listview item size. XML is:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/list_up" &gt; &lt;TextView android:id="@+id/name_entry" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="28dip" /&gt; &lt;TextView android:id="@+id/number_entry" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="28dip" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>I can really really use some help here.</p> <p>Yoav</p>
 

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