Applying style resource programatically
<p>I didn't find a way to do that programatically so I am posting this question here (also i didn't find any question related to this one).</p>

<p>I have a resource style, defined in the res/values/styles.xml. What I am trying to do is apply this style inside my activity using java to a View object that i am manipulating. </p>

<p>Is it possible to achieve this in Android or the style can only be applied to an object using the android:style attribute?</p>
