SyntaxFix
Write A Post
Hire A Developer
Questions
You can both highlight and select the item with the following 1-liner:
navigationView.getMenu().performIdentifierAction(R.id.posts, 0);
Source: https://stackoverflow.com/a/31044917/383761