Closed devloe closed 10 years ago
I don't know if this is the right place to ask this.
Is there a way to pass a context to the SomethingViewHolder class in order to for instance adding an image dynamically?
Something like this?
public DebateViewHolder(View view, Context c) { super(view); this.context = c; }
Thanks.
Solved it. Sorry.
The ViewHolder already has a valid Context, you just have to call getContext()
ViewHolder
getContext()
I don't know if this is the right place to ask this.
Is there a way to pass a context to the SomethingViewHolder class in order to for instance adding an image dynamically?
Something like this?
Thanks.