SyntaxFix
Write A Post
Hire A Developer
Questions
well no need of passing the context and doing all that...simply do this
Context context = parent.getContext();
Edit: where parent is the ViewGroup