title: What is the equivalent of "android:fontFamily="sans-serif-light" in Java code?
body: <p>My question is quite simple: </p>
  
  <p>In every of my textview, I am currently using the attribute </p>
  
  <pre><code>android:fontFamily="sans-serif-light"
  </code></pre>
  
  <p>to provide a gorgeous look on post HC devices.</p>
  
  <p>Unfortunately, this doesn't work with every widget and for my Spinners, I need to overwrite the Adapter.</p>
  
  <pre><code>@Override
  public View getView(int position, View convertView, ViewGroup parent) {
      //You can use the new tf here.
  
      if(convertView == null || convertView.getTag() == null) {
          // new view - populate 
          convertView = inflater.inflate(android.R.layout.simple_spinner_dropdown_item, parent, false);
          convertView.setTag(new Object());
      }
  
      CheckedTextView spinner_text=(CheckedTextView) convertView.findViewById(android.R.id.text1);
      //Typeface should be set here...
      return spinner_text;
      }
  }
  </code></pre>
  
  <p>So, is there a way to get exactly the same result by code?</p>
  
  <p>PS: No, I don't want to put a typeface in asset folder, I just want to use system one.</p>