I refer to the code example in the book, where the following line shows in red:
The DialogActivity example includes the line:
Code:
Toolbar toolbar = (Toolbar)findViewById(R.id.toolbar);
This line shows the
toolbar identifier in red, because it is not recognized. All searches I have done have a simple restart or clean and rebuild as the solution, but not for my instance of this problem. I have tried about 4 suggested remedies already with no solution.
I only have about 1 month Java and Android studio experience, so please forgive me if this is a stupid or often asked question.
I suspect I need to add a reference to something in the project; that normally solves unknown identifiers, but I have no idea where or how, or even what they're really called, to find these references.