title: How to set custom font for RecyclerView items
body: <p>I am a beginner at android. I created a <code>RecyclerView</code> by parsing JSON data. I want to make this TextView font in <code>RecyclerView</code> items custom. I tried many methods but it didn't work for me. I want to set a custom font as my font in a text view in <code>RecyclerView</code> item. Please help me
  My adapter code:</p>
  
  <pre><code>public class ExampleAdapter extends RecyclerView.Adapter &lt;ExampleAdapter.ExampleViewHolder&gt;{
      private Context mContext;
      private ArrayList&lt;ExampleItem&gt; mExampleList;
      private onItemClickListener mListener;
      public interface onItemClickListener{
          void onItemClick(int position);
      }
  
      public void setOnItemClickListener(onItemClickListener listener){
          mListener = listener;
      }
      public ExampleAdapter(Context context, ArrayList&lt;ExampleItem&gt; examplelist){
          mContext =context;
          mExampleList = examplelist;
      }
  
  
      @NonNull
      @Override
      public ExampleViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
         View v = LayoutInflater.from(mContext).inflate(R.layout.example_item,parent,false);
         return new ExampleViewHolder(v);
      }
  
      @Override
      public void onBindViewHolder(@NonNull ExampleViewHolder holder, int position) {
          ExampleItem currentItem = mExampleList.get(position);
          String imageUrl = currentItem.getmImageUrl();
          String creatorName = currentItem.getmCreator();
          String cat =currentItem.getmCat();
  
          holder.mTextViewCreator.setText(creatorName);
          holder.mTextViewCat.setText(cat);
          Glide.with(mContext)
                  .load(imageUrl)
                  .into(holder.mImageView);
      }
  
      @Override
      public int getItemCount() {
          return mExampleList.size();
      }
  
      public class ExampleViewHolder extends RecyclerView.ViewHolder{
  public ImageView mImageView;
  public TextView mTextViewCreator;
  public TextView mTextViewCat;
          public ExampleViewHolder(View itemView) {
              super(itemView);
              mImageView = itemView.findViewById(R.id.image_view);
              mTextViewCreator = itemView.findViewById(R.id.text_view_creator);
              mTextViewCat = itemView.findViewById(R.id.text_view_cat);
              itemView.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View view) {
                      if(mListener != null){
                          int position = getAdapterPosition();
                          if (position !=RecyclerView.NO_POSITION){
                              mListener.onItemClick(position);
                          }
                      }
                  }
              });
          }
      }
  }
  </code></pre>