My code is as follows:
<LinearLayout
android:background="#ea1a1a"
android:weightSum="3"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:textAllCaps="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Boton 1"
android:layout_weight="1"
android:theme="@style/BotonColores"
android:textColor="#ffffff"/>
<Button
android:textAllCaps="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Boton 2"
android:layout_weight="1"
android:theme="@style/BotonColores"
android:textColor="#ffffff"/>
<Button
android:textAllCaps="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Boton 3"
android:layout_weight="1"
android:theme="@style/BotonColores"
android:textColor="#ffffff"/>
</LinearLayout>
This is the result you get:
What I need is to remove the space above and below between the LinearLayout and the Buttons, a simple way to do it?