Guest User

Untitled

a guest
Jun 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. override fun onCreate(savedInstanceState: Bundle?) {
  2. super.onCreate(savedInstanceState)
  3. setContentView(R.layout.activity_my)
  4. // Note that the Toolbar defined in the layout has the id "my_toolbar"
  5. setSupportActionBar(findViewById(R.id.my_toolbar))
  6.  
  7. ((AppCompatActivity)getActivity()).setSupportActionBar(mToolbar);
Add Comment
Please, Sign In to add comment