Jesperbook
Jesperbook

Reputation: 151

How to show Android app name on ActionBar of each Activity?

I'm working right now on my first great app! Where tm-s is, I want to have Hello world for each Activity. Is it possible?

enter image description here

Upvotes: 1

Views: 80

Answers (2)

Onik
Onik

Reputation: 19959

Use the following

android:label="@string/app_name"

for each activity and application tag of AndroidManifest.xml. The string resource app_name should reside in res/values/strings.xml:

<string name="app_name">Hello world!</string>

Upvotes: 1

Ciro Rizzo
Ciro Rizzo

Reputation: 492

Usually the title shown at the top of the screen is the label assigned to the Activity.

Update all your Activities label with Hello World

Upvotes: 0

Related Questions