title: Android: Custom font for XML in AppWidgetProvider
body: <p>I am trying to use a custom font for my app, and have the XML layout use this custom font. I followed the instructions listed <a href="https://stackoverflow.com/questions/2376250/custom-fonts-and-xml-layouts-android">here</a>, but the problem is that I get the following crash:</p>
  
  <pre><code>W/AppWidgetHostView(  519): updateAppWidget couldn't find any view, using error view
  W/AppWidgetHostView(  519): android.view.InflateException: Binary XML file line #63: Error inflating class com.example.RobotoTextView
  </code></pre>
  
  <p>Because this is running inside an AppWidgetProvider, I wonder if it is going to work. Maybe there is a work around (except going through each widget ID and changing the typeface in Java) please. Any clue?</p>