I'm trying to use font resource directory and use different fonts in xml files in order to use them in preference. I read this thread but I couldn't solve the problem. I'm using support library v27 and I know it supports font in res instead of asset folder. Whenever I change the language of app it only uses just the font which is located in font-fa-rIR folder. I want application uses different fonts for different type of languages respectively. I have attached an image from res directory of application. Where is my problem? How can I solve it? Thank in advance.
preference_button.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:id="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/font_1" />
<TextView
android:id="@+id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/font_1" />
</LinearLayout>