Last active
January 31, 2017 13:25
-
-
Save alfianyusufabdullah/8c451f0e84fed6692dbacffa046a9619 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.jonesrandom.tutorialmembuattoolbar; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.support.v7.widget.Toolbar; | |
| public class MainActivity extends AppCompatActivity { | |
| Toolbar myToolbar; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| myToolbar = (Toolbar) findViewById(R.id.my_toolbar); | |
| /// Mengatur Toolbar ke dalam Support Action Bar | |
| setSupportActionBar(myToolbar); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment