I have this custom style:
<resources> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> <style name="AppTheme.AppText"> <item name="android:fontFamily">@font/book_family</item> </style> </resource>
I applied this new style as a theme to one of my actions, adding the following to my manifest:
... <activity android:name=".MyActivity" android:theme="@style/AppTheme.AppText"/> ...
The result is not what I expected. Only a few views picked up their own style. The following figure shows two views. The first FIELD ONE is fine. Field FIELD TWO does not pick up the style.

Here is the definition of these two fields:
<android.support.design.widget.TextInputLayout android:id="@+id/til_email" android:layout_width="match_parent" android:layout_height="wrap_content" > <AutoCompleteTextView android:id="@+id/email" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/prompt_email" android:inputType="number" android:imeOptions="actionNext" android:maxLines="1" android:singleLine="true" /> </android.support.design.widget.TextInputLayout> <android.support.design.widget.TextInputLayout android:id="@+id/til_password" android:layout_width="match_parent" android:layout_height="wrap_content" > <EditText android:id="@+id/password" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/prompt_password" android:imeActionId="6" android:imeActionLabel="@string/action_sign_in_short" android:imeOptions="actionUnspecified" android:inputType="numberPassword" android:maxLines="1" android:singleLine="true" /> </android.support.design.widget.TextInputLayout>
Any idea please?
source share