How do I use Android toolbar?

How do I use Android toolbar?
Answer
Add a Toolbar to an Activity
  1. Add the v7 appcompat support library to your project, as described in Support Library Setup.
  2. Make sure the activity extends AppCompatActivity : …
  3. In the app manifest, set the
    <application>
    element to use one of appcompat’s NoActionBar themes. …
    </application>
  4. Add a Toolbar to the activity’s layout.
 

Tìm kiếm

Back
Top