Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use RelativeLayout instead of LinearLayout</p> <pre><code>&lt;RelativeLayout android:background="@drawable/activitytitlegradient" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical"&gt; &lt;ImageView android:id="@+id/mainMenuLeftButton" android:background="#00ffffff" android:layout_gravity="center_vertical" android:src="@drawable/rr_boat_bow" android:scaleType="fitStart" android:layout_alignParentLeft="true" android:layout_height="34dip" android:layout_width="wrap_content"/&gt; &lt;TextView android:id="@+id/mainMenuTitle" android:layout_width="wrap_content" // or fiexed like 400dp android:layout_height="wrap_content" android:paddingLeft="2dp" android:background="#00ffffff" android:text="Reference" android:singleLine="true" android:textSize="19sp" android:textStyle="bold" android:textColor="#ffffff" android:layout_toRightOf="@id/mainMenuLeftButton" android:gravity="center_horizontal|center_vertical" /&gt; &lt;Button android:id="@+id/mainMenuRightButton" android:background="@drawable/buttonborder" android:text="Edit" android:textSize="13sp" android:textColor="#ffffff" android:textStyle="bold" android:layout_margin="3dip" android:padding="3dip" android:alignParentRight="true" android:layout_height="35dip" android:layout_width="wrap_content" android:visibility="invisible"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>see if it works or you can add some rules like android:layout_xxxxx, it is more flexable with RelativeLayout.</p> <p>EDIT: invisible &amp; toRightOf as replied in comment</p>
    singulars
    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.
    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