Thursday, November 21, 2013

Android: Change App Title

In today's short post I want to explain how to change the title of an Android app, more specifically speaking, the title of the single app windows (activities).
When creating a new app, the main activity looks as follows, the title (circled in red) is the name of the project:

To change this, we simply replace it in the following line, which is located as an attribute directly above the definition of the activity class:

[Activity (Label = "New Title", MainLauncher = true)]

Via code we can change the title over the property Title:

this.Title = "Algo";

No comments:

Post a Comment