title: Cannot resolve method getAssets() while adding custom font
body: <p>I want to add custom font to the button (LetterBtn) in my Adapter that extends BaseAdapter, but I get an error with getAssets() as "cannot resolve method 'getAssets()'".</p>
  
  <p>The font is in the assets/fonts/ folder, it works fine in my other Activity.</p>
  
  <pre><code>@Override
  public View getView(int position, View convertView, ViewGroup parent) {
  
      Button letterBtn;
  
      if (convertView == null) {
          letterBtn = (Button)letterInf.inflate(R.layout.letter, parent, false);
      } else {
          letterBtn = (Button)convertView;
      }
  
      letterBtn.setText(letters[position]);
  
  
  Typeface font1 = Typeface.createFromAsset(getAssets(), 
  "fonts/nexalight.otf");
  letterBtn.setTypeface(font1);
  
      return letterBtn;
  
  }
  </code></pre>