Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_my)
- // Note that the Toolbar defined in the layout has the id "my_toolbar"
- setSupportActionBar(findViewById(R.id.my_toolbar))
- ((AppCompatActivity)getActivity()).setSupportActionBar(mToolbar);
Add Comment
Please, Sign In to add comment