Creating an Android View with a particular style programmatically
- by Casebash
How can I create a view with a particular style programmatically (not in XML)? I tried using this [View (Context context, AttributeSet attrs, int defStyle)][1], but I don't know what to parse in for the second argument. Passing in null results in the View not being displayed
[1]: http://developer.android.com/reference/android/view/View.html#View(android.content.Context, android.util.AttributeSet, int)