Other questions say that the style cannot be set programmatically, but a View
can be initialised with a style such as when it is loaded from XML.
How can I initialise a View
with a particular style programmaticly (not in XML)? I tried using View(Context context, AttributeSet attrs, int defStyle), but I don't know what to parse in for the second argument. Passing in null
results in the View
not being displayed