title: Pass AttributeSet as parameter in custom view constructor in AppWidget for android
body: <p>I need to pass AttributeSet as a parameter in custom View constructor. Here is the attribute that I need to pass:</p>
  
  <blockquote>
    <p><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;resources&gt;
        &lt;declare-styleable name="DonutChart"&gt;
            &lt;attr name="radiusDonut" format="dimension"/&gt;
            &lt;attr name="donutTextSize" format="dimension"/&gt;
        &lt;/declare-styleable&gt;
    &lt;/resources&gt;</code></p>
  </blockquote>
  
  <p>I need to do this with code, in order that I will add my custom view to RemoteView in my AppWidget. Does anyone has any idea how can I achive this?</p>