I have a fragment and a dialog fragment with spinners and editboxes, however the styles are different. The fragment is smaller, with no borders, only with a line at the bottom. The dialogfragment has borders and the edittexts background are white. I would like to keep the fragment default because it looks more modern.
Fragment
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.fragment">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Estado de Nascimento:"/>
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/spinnerStates"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cidade de Nascimento:"/>
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/spinnerCities"/>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/input_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Nome"
android:selectAllOnFocus="true"
android:inputType="textCapWords"/>
</android.support.design.widget.TextInputLayout>
</LinearLayout>
DialogFragment
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/edit_name"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_vertical"
android:layout_gravity="center"
android:background="@color/colorBlack80Alpha"
tools:context="com.example.DialogFragment">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="60px"
android:layout_gravity="center"
android:text="Adicionar contato"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Estado:"/>
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/spinnerStates"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cidade:"/>
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/spinnerCities"/>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/input_endereco"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Endereço"
android:selectAllOnFocus="true"
android:inputType="textCapWords"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/input_bairro"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Bairro:"
android:selectAllOnFocus="true"
android:inputType="textCapWords"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/input_phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Telefone:"
android:selectAllOnFocus="true"
android:inputType="textCapWords"
/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/input_cell"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Celular:"
android:selectAllOnFocus="true"
android:inputType="textCapWords"
/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/input_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="e-mail:"
android:selectAllOnFocus="true"
android:inputType="textCapWords"
/>
</android.support.design.widget.TextInputLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_gravity="center">
<TextView
android:id="@+id/txtCancelar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18dp"
android:clickable="true"
android:text="Cancelar"
android:textColor="@color/colorFAB" />
<TextView
android:id="@+id/txtAdd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:textSize="18dp"
android:clickable="true"
android:textColor="@color/colorFAB"
android:text="Adicionar" />
</LinearLayout>