I had a problem creating CardView with a button that aligns with the beginning of the text:

I keep track of the sizes indicated in the Material Design specification for padding and text sizes. This is the XML I'm using:
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="8dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="16dp" android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingTop="24dp" android:text="Title goes here" android:textColor="@color/primary_text_default_material_light" android:textSize="24sp" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="16dp" android:paddingLeft="16dp" android:paddingRight="16dp" android:text="Subtitle here" android:textSize="14sp" /> <Button style="@style/Base.Widget.AppCompat.Button.Borderless.Colored" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="8dp" android:padding="0dp" android:text="Action 1" android:textColor="@color/accent_material_light" /> </LinearLayout> </android.support.v7.widget.CardView>
Visually, there is a gap between the beginning of the text and the text of the button without borders.

As shown in the Material Specification , the button and the beginning of the title and subtitles should line up:

Where am I going wrong?
source share