Note that there are some explanatory texts on larger screens.

plurals
  1. POImages not fully appear in scrollview
    primarykey
    data
    text
    <p>I created a <code>scrollview</code> that contains <code>LinearLayout</code> which have some <code>ImageButtons</code> in it, some pics is cut a part from the left as in the following image:</p> <p><img src="https://i.stack.imgur.com/PK9gq.png" alt="enter image description here"></p> <p>as you see in the image, the cut image reserves a place can contains all of it, also the same at the layout around them.</p> <p><strong>my code:</strong></p> <pre><code> &lt;ScrollView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left" android:layout_weight="0.08" android:layout_marginRight="35dp" &gt; &lt;LinearLayout android:id="@+id/lefter" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:background="@android:color/transparent" android:gravity="center" android:orientation="vertical" android:paddingBottom="15dp" android:paddingTop="10dp" android:weightSum="5" &gt; &lt;ImageButton android:id="@+id/backhome_side" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_gravity="center" android:layout_weight="1" android:adjustViewBounds="true" android:layout_marginBottom="2dp" android:background="@android:color/transparent" android:clickable="true" android:scaleType="centerInside" android:src="@drawable/light_backhome" /&gt; &lt;ImageButton android:id="@+id/leave_side" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_gravity="center" android:layout_weight="1" android:adjustViewBounds="true" android:layout_marginBottom="2dp" android:background="@android:color/transparent" android:clickable="true" android:scaleType="centerInside" android:src="@drawable/light_leave" /&gt; /* . . . .// another 7 images*/ &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre>
    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.
    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