Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a lenghty thread over on anddev.org that may be able to help you out</p> <p><a href="http://www.anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html" rel="nofollow noreferrer">http://www.anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html</a></p> <p>I have followed it and successfully created my own title bar which allows me to set the padding.</p> <p>Xml for my title bar:</p> <hr> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout android:id="@+id/header" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="38px" android:layout_width="fill_parent" android:background="@drawable/gradient"&gt; &lt;TextView android:id="@+id/title" android:layout_width="wrap_content" android:gravity="center_vertical" style="@style/PhoneText" android:layout_alignParentLeft="true" android:text="New Title" android:background="@android:color/transparent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:padding="5dip" android:layout_marginBottom="7px"/&gt; &lt;TextView android:id="@+id/time" android:layout_width="wrap_content" android:gravity="center_vertical" style="@style/PhoneText2" android:layout_alignParentRight="true" android:text="Test Text" android:background="@android:color/transparent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:padding="4dip" android:layout_marginBottom="7px"/&gt; &lt;/RelativeLayout&gt; </code></pre> <hr> <p>The above creates a small gray bar with text aligned to the right and left sides</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.
    1. VO
      singulars
      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