title: custom font are not loaded in dialog's listView
body: <p>I have defined the font folder and xml file under drawable folder. I am using dialogue and defined the <code>List_view.xml</code> and <code>List_item.xml</code> for appearance of dialogue; However custom font defined in <code>list_item.xml</code>  is not loading at the time dialogue appears; default android font are showing.</p>
  
  <p>I have tried to change the default font of the whole app but still dialogue loads default fonts.</p>
  
  <p><a href="https://i.stack.imgur.com/85Icf.png" rel="nofollow noreferrer">default-font-in-dialogue</a><br>
  <a href="https://i.stack.imgur.com/jxT81.png" rel="nofollow noreferrer">i want to use this font in dialog</a></p>
  
  <pre><code>
  
  public void showDialogListView(View view) {
  
  
          dialog = new Dialog(personal_info_1.this);
          dialog.setContentView(R.layout.list_view);
          dialog.setTitle("Select Country");
          dialog.setCancelable(true);
          dialog.setCanceledOnTouchOutside(true);
  
          //prepare a list view in dialog
          listview_country = dialog.findViewById(R.id.dialogList);
  
  
          ArrayAdapter adapter = new ArrayAdapter(getApplicationContext(), R.layout.list_item, R.id.txtitem, country_name);
          listview_country.setAdapter(adapter);
          listview_country.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView parent, View view, int position, long id) {
                  //Toast.makeText(personal_info_1.this, "Clicked Item: " + parent.getItemAtPosition(position).toString(), Toast.LENGTH_SHORT).show();
                  textview_country_info.setText(parent.getItemAtPosition(position).toString());
                  dialog.dismiss();
              }
          });
  
  
          dialog.show();
      }
  
  </code></pre>
  
  <p> here, <code>country_name</code> array in array adapter is fetched from database method in onCreate.</p>
  
  <p><strong>list_item.xml :</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  &lt;TextView
      android:id="@+id/txtitem"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:fontFamily="@font/quicksand_light"
      android:padding="10dp"
      android:text="Text"
      android:textSize="16sp" /&gt;
  
  &lt;View
      android:layout_width="match_parent"
      android:layout_height="1dp"
      android:layout_marginLeft="15dp"
      android:layout_marginRight="15dp"
      android:background="@color/line_light"
  /&gt;
  </code></pre>
  
  <p></p>
  
  <p>list_view.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;ListView
          android:id="@+id/dialogList"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@drawable/listview_background"&gt;&lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>