Issue
I have added an empty activity in option menu settings. When I am clicking on settings an activity opens, named My Application, which is my application name. I want the name to be Settings. Can anyone help? I'm using Android studio.
Solution
set your activity title using this code:
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setTitle("My title");
Answered By - vinay6kr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.