SyntaxFix
Write A Post
Hire A Developer
Questions
Simply use this in your adapter, Where MainActivity is your AppCompactActivity. Call it from anywhere.
((MainActivity) context).getSupportActionBar().setTitle(titles.get(position));