Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid layout messed up on the phone
    primarykey
    data
    text
    <p>I did my layout based on emulator but just ran my app on an actual device and all the layout is messed up. I don't know how to fix it. here is the code for my xml file,</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/mainback" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="23dip" android:layout_marginRight="15dip" android:layout_marginTop="255dip" android:orientation="vertical" &gt; &lt;TextView android:layout_width="276dp" android:layout_height="132dp" android:textSize="15dp" android:gravity="center_vertical" android:text="some text" android:textColor="#4C2016"/&gt; &lt;Button android:id="@+id/special" android:layout_width="131dp" android:layout_height="40dp" android:background="@drawable/cc" android:layout_marginTop="20dip" android:layout_marginLeft="75dip" android:textSize="17dp" android:textStyle="bold" android:text="Specials" android:textColor="#F6E6C6" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>`</p> <p>It would be awesome is some one can tell me how to fix this code </p> <p>Here is snap shot of what it looks like on the xml file</p> <p><img src="https://i.stack.imgur.com/Qa5Cr.png" alt="enter image description here"></p> <p>This is how it looks like on the phone,</p> <p><img src="https://i.stack.imgur.com/R2Rmc.jpg" alt="enter image description here"></p> <p>The image and the text in orange are part of the background image and the textview and the button are added to the view.</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.
    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