Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. setSupportActionBar(toolbar);
  2. getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  3. getSupportActionBar().setHomeButtonEnabled(true);
  4.  
  5. <string name="main_activity_name”>Main Activity</string>
  6.  
  7. <activity
  8. android:name="MainActivity"
  9. android:label="@string/main_activity_name” >
  10. </activity>
  11.  
  12. MainActivity.mName = “new name”;
  13.  
  14. public static String mName = “old name”;
  15.  
  16. getSupportActionBar().setTitle(mName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement