Note that there are some explanatory texts on larger screens.

plurals
  1. POfill parent on a textview doesn't apply
    primarykey
    data
    text
    <p>I know this question has been asked multiple times, but I have looked on all the solution I could see and none of them worked. I have a textview inside a relative-layout. the textview has a height : fill_parent atribute that does not work. the pun is that they are severall other textview in this relative-layoutwhich all manage to fill parent,except for this one. here is the XML :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/customshape" android:orientation="horizontal" &gt; &lt;TextView android:id="@+id/mainlistdescription" android:layout_width="wrap_content" android:layout_height="fill_parent" android:scrollHorizontally="true" android:maxLines="4" android:layout_alignParentLeft="true" android:layout_toLeftOf="@+id/mainlistquantite" android:layout_gravity="center_vertical" android:textSize="12sp" android:padding="10dp" /&gt; &lt;TextView android:id="@+id/mainlistquantite" android:layout_width="wrap_content" android:layout_height="fill_parent" android:maxLines="4" android:layout_toLeftOf="@+id/consultaffichelayoutdroit" android:textSize="12sp" android:padding="10dp" /&gt; &lt;TextView android:id="@+id/consultafficheseparator" &lt;!-- the one not working--&gt; android:layout_width="2dp" android:layout_height="fill_parent" android:layout_toLeftOf="@+id/imageView1" android:background="#777777" android:maxWidth="2dp" /&gt; &lt;ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="15dp" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:gravity="center_vertical|right" android:src="@drawable/fleche" /&gt; &lt;LinearLayout android:id="@+id/consultaffichelayoutdroit" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_toLeftOf="@+id/consultafficheseparator" android:orientation="vertical" android:paddingLeft="5dp" &gt; &lt;TextView android:id="@+id/mainlistnumero" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="right" android:layout_marginRight="10dp" android:layout_weight="1" android:textSize="12sp" android:textStyle="bold" /&gt; &lt;TextView android:id="@+id/mainlistprix" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="right" android:layout_marginRight="10dp" android:layout_weight="1" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p>here is what i get : <img src="https://i.stack.imgur.com/Tk9zG.png" alt="enter image description here"></p> <p>the grey bar should go all the way but doesn't when actually running on the emulator( it does in the eclipse tool)</p> <p>since this xml is actually called in a list view, I can't seem to fix the problem using JAVA code, so the solution would ideally be on the XML file. I tryed so far android:clipChildren="false" without sucess, as well as changing the order of my elements in the XML, wich juste made it worse.</p> <p>after experiment,I can tell nothing takes the place so it's not the it cannot go because there is allready a view there,it just doesn't expand that far</p> <p>thanks for the help on that</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    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