title: Change font dynamically of textview in fragment
body: <p>I have a class that extends FragmentActivity, inside Fragment that I've created there's only a textView.</p>
  
  <p>I'd like to put a setting button on actionbar (already done) that could make user change font type of this textView.</p>
  
  <p>How could I achive this?</p>
  
  <p>I've another problem, that number of Fragment in FragmentActivity is not known a priori...
  So when I change my font type I'd like to change on every Fragment.</p>
  
  <p>I've tried to put a method changefont inside my Fragment, but I have no idea how I could manage..</p>
  
  <pre><code>public void setFont(){
              TextView textView = (TextView) getView().findViewById(R.id.detailsText);
              textView.setTypeface();
  //Another problem how set typeface, because
  //Typeface font = Typeface.createFromAsset(getAssets(),"fonts/font.tff"); couldn't work because I'm inside a Fragment and getAssets() just rise errors..
          }
  </code></pre>
  
  <p>I'm quite stuck.. Could you guys help me?</p>