Creating an Android View with a particular style programmatically

Posted by Casebash on Stack Overflow See other posts from Stack Overflow or by Casebash
Published on 2010-06-01T06:32:15Z Indexed on 2010/06/01 6:33 UTC
Read the original article Hit count: 635

Filed under:

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)

© Stack Overflow or respective owner

Related posts about android