Note that there are some explanatory texts on larger screens.

plurals
  1. POdifferent layout between what appear on emulator and what on xml
    text
    copied!<p>i am developing an android application</p> <p>i design my xml so it is</p> <p><img src="https://i.stack.imgur.com/3RR91.png" alt="enter image description here"></p> <p>However, when i run the application on emulator, i got this result</p> <p><img src="https://i.stack.imgur.com/PjaJp.png" alt="enter image description here"></p> <p>notice please the circle red. why this different between the two?</p> <h3>my english is bad, if u didn't understood me, please say to me </h3> <p>this is the xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;ImageView android:id="@+id/iv_logo" android:layout_width="150sp" android:layout_height="150sp" android:background="@drawable/roma_logo" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@+id/iv_logo" android:paddingLeft="10sp" android:paddingTop="10sp" android:text="@string/action_settings" android:textColor="#000000" android:textSize="20sp" /&gt; &lt;Button android:id="@+id/b_subscribe" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBottom="@+id/iv_logo" android:layout_alignParentRight="true" android:text="@string/action_settings" /&gt; &lt;/RelativeLayout&gt; &lt;ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingBottom="@dimen/activity_vertical_margin" android:src="@drawable/boarder" /&gt; &lt;HorizontalScrollView android:id="@+id/hsv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fillViewport="true" android:measureAllChildren="false" android:scrollbars="none" &gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;ImageView android:layout_width="200sp" android:layout_height="289sp" android:paddingRight="@dimen/activity_horizontal_margin" android:src="@drawable/roma1" /&gt; &lt;ImageView android:layout_width="200sp" android:layout_height="289sp" android:paddingRight="@dimen/activity_horizontal_margin" android:src="@drawable/roma2" /&gt; &lt;ImageView android:layout_width="200sp" android:layout_height="289sp" android:paddingRight="@dimen/activity_horizontal_margin" android:src="@drawable/roma3" /&gt; &lt;/LinearLayout&gt; &lt;/HorizontalScrollView&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:contentDescription="@string/border_thin" android:paddingBottom="@dimen/activity_vertical_margin" android:src="@drawable/boarder_thin" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center|left" android:paddingLeft="@dimen/activity_horizontal_margin" android:text="@string/date_of_establishment" android:textColor="#da1337" android:textSize="20sp" android:textStyle="italic" /&gt; &lt;TextView android:id="@+id/tv_date_of_establishment" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="@dimen/activity_horizontal_margin" android:text="1999" android:textColor="#000100" android:textSize="15sp" /&gt; &lt;ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:contentDescription="@string/border_thin" android:paddingTop="@dimen/activity_vertical_margin" android:src="@drawable/boarder_thin" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>the wrong happended in the <code>imageview</code> witch have drawable called <code>boarder</code> and <code>boarder_thin</code></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