Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get rid of spacing between tabs in Android application?
    primarykey
    data
    text
    <p>I have 4 tabs that I load using a TabHost and TabWidget using the following layout:</p> <pre><code>&lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="0dp" android:layout_margin="0dp"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#FFFFFF" android:padding="0dp" android:layout_margin="0dp"&gt; &lt;ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/titlebar" /&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#AAAAAA" android:padding="0dp" android:layout_margin="0dp"&gt; &lt;TabWidget android:id="@android:id/tabs" android:tabStripEnabled="true" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;/LinearLayout&gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="0dp" android:layout_margin="-5dp" /&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre> <p>This looks great in my emulator and also great on my friends G2, however on my EVO 4G there is weird spacing between each tab. It looks like 5 or so pixels between each of the 4 tabs I load.<br> Again, in an emulator that has the exact same resolution of the EVO (800x480) it looks fine, no spacing between tabs.<br> Why does it look different on my EVO?<br> I've tried everything I can think of to get rid of the spacing, and nothing works.</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.
 

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