-1

I want to change the title that appear on my app. This text is taken from the string.xml => the 'app_name' Can't remove and use some other AppTheme ( using the default ) because this remove the 3 dots that i have to show the 'settings' activity.

I trying to play with all the AppTheme settings .. and nothing change this text.

enter image description here

Yanshof
  • 9,659
  • 21
  • 95
  • 195
  • Possible duplicate of [How to change the text on the action bar](https://stackoverflow.com/questions/3438276/how-to-change-the-text-on-the-action-bar) – AskNilesh Dec 09 '17 at 16:28

2 Answers2

1

Try this in Your OnCreate() method of Your Activity

getSupportActionBar().setTitle("Prem");

OR

add android:label="PREM" in your Activity tag in manifest file like below code

<activity
     android:name=".YourAactivity"
     android:label="PREM" <--addhere your activity name--> />
Goku
  • 9,102
  • 8
  • 50
  • 81
1

Go to manifests > AndroidManifest.xml > You can change the title by changing the android:label field, in this specific case find aplication and change android:label. If you want an specific activity, you find the activity and is the same process

Rodrigo João Bertotti
  • 5,179
  • 2
  • 23
  • 34