I tried following the steps for displaying a drawer above the action bar but below the status bar. The steps found here:
display over the ActionBar/Toolbar and under the status bar?
But after implementing the code, the following error was thrown:
error: cannot find symbol method setSupportActionBar(Toolbar)
I've searched on Google for this exact error and not a single result.
I'm using Android Studio (1.1) and have tried using "Clean Build"
I'm using import android.support.v7.widget.Toolbar;
Toolbar toolbar = (Toolbar) findViewById(R.id.actionbar);
setSupportActionBar(toolbar); //error
Hopefully, someone recognizes this error and has a quick answer for it - otherwise I can provide more information if requested.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…