Nguyễn Đôn Hào
New member
How do I use Android toolbar?
Answer
Add a Toolbar to an Activity
Answer
Add a Toolbar to an Activity
- Add the v7 appcompat support library to your project, as described in Support Library Setup.
- Make sure the activity extends AppCompatActivity : …
- In the app manifest, set the
<application>
element to use one of appcompat’s NoActionBar themes. …
</application> - Add a Toolbar to the activity’s layout.