title: Android set Roboto font with bold, italic, regular,... (something like custom font family)
body: <p>I know ho to set custom font programmatically inside Android app.
  Is there any way to load typeface for custom font (assets) and Android framework will use proper file based on bold, italic and so on?</p>
  
  <p>For example now I'm trying to set Roboto font to some <code>TextView</code></p>
  
  <pre><code>Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/Roboto/Roboto-Regular.ttf");
  textView.setTypeface(typeface);
  </code></pre>
  
  <p>It works ok. But since I set <code>TextView</code> inside xml layout to bold , text is not bolded</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/my_id"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginLeft="20dp"
      android:layout_marginRight="20dp"
      android:layout_marginTop="50dp"
      android:textStyle="bold"
      android:gravity="center"
      android:text="@string/my_text"
      android:textColor="@color/my_foreground"
      android:textSize="24dp" /&gt;
  </code></pre>
  
  <p>How to load typeface from assets properly that this will work?</p>
  
  <pre><code>textView.setTypeface(typeface, Typeface.BOLD);
  </code></pre>
  
  <p>Inside my assets dir there is only one "font family"</p>
  
  <pre><code>Roboto-Black.ttf
  Roboto-BlackItalic.ttf
  Roboto-Bold.ttf
  Roboto-BoldCondensed.ttf
  Roboto-BoldCondensedItalic.ttf
  Roboto-BoldItalic.ttf
  Roboto-Condensed.ttf
  Roboto-CondensedItalic.ttf
  Roboto-Italic.ttf
  Roboto-Light.ttf
  Roboto-LightItalic.ttf
  Roboto-Medium.ttf
  Roboto-MediumItalic.ttf
  Roboto-Regular.ttf
  Roboto-Thin.ttf
  Roboto-ThinItalic.ttf
  </code></pre>
  
  <p>How to load all that fonts inside one typeface/family?</p>