Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid, remove margin and padding from element
    text
    copied!<p>i've an activity that contains a LinearLayout (horizontal), i want that all elements inside the LinearLyout are attached, without margin or padding. I've tried many methods but to no avail.</p> <p>This is my last attempt:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="0.50" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:includeFontPadding="false" &gt; &lt;TextView android:id="@+id/descriptionCounter" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="0dp" android:padding="0dp" android:background="@null" android:gravity="center_horizontal" android:text="@string/text_description" android:textColor="#33b5e5" android:textSize="60sp" android:includeFontPadding="false" /&gt; &lt;TextView android:id="@+id/textActionCounter" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="0dp" android:padding="0dp" android:background="@null" android:contentDescription="@string/text_counter" android:gravity="center_horizontal" android:textColor="#33b5e5" android:textSize="140sp" android:includeFontPadding="false" /&gt; &lt;TextView android:id="@+id/previousCounter" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="0dp" android:padding="0dp" android:background="@null" android:contentDescription="@string/text_counter" android:gravity="center_horizontal" android:textColor="#33b5e5" android:textSize="60sp" android:includeFontPadding="false" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p>How can i resolve my problem?</p> <p>Thanks!</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