Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid linear layout aligning issues
    text
    copied!<p>What I am trying to do is as below <img src="https://i.stack.imgur.com/Pfkgc.png" alt="enter image description here"></p> <p>I tried using linear layout as below </p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout android:id="@+id/widget33" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" android:background="#FFFFFF" &gt; &lt;TextView android:layout_height="wrap_content" android:text="Eric Lee" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginBottom="50px" android:layout_marginTop="10px"&gt;&lt;/TextView&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;ImageButton android:layout_width="wrap_content" android:src="@drawable/help" android:layout_height="wrap_content" android:id="@+id/imageButton2" android:background="@null" android:layout_gravity="left"&gt;&lt;/ImageButton&gt; &lt;ImageButton android:layout_width="wrap_content" android:src="@drawable/help" android:layout_height="wrap_content" android:id="@+id/imageButton2" android:background="@null" android:layout_gravity="top"&gt;&lt;/ImageButton&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>However i am having trouble with floating the image left and the right image right. They still stuck at the same Position</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