SyntaxFix
Write A Post
Hire A Developer
Questions
Try this in your constructor
MainActivity maniActivity = (MainActivity)context; EditText firstName = (EditText) maniActivity.findViewById(R.id.display_name);