App name does not appear in emulator equal appears when I’m fiddling with code

Asked

Viewed 673 times

1

The name of the application that I’m making in android studio does not appear on the emulator screen.

The installed icon is appearing and the name, but it does not appear on the screen or in the program.

You’d have to get in the briefcase res and in string or in the manisfesto to change something?

  • put a print indicating where the name and code of your manifest are not showing to us, please

2 answers

1

Whoa, that’s all right!?

Your question is very clear, but if you want to rename the application itself, it will be in your AndroidManifest.xml on the tag application, where android:label will define the application name (by default you will consume some string):

 <application
        android:allowBackup="true"
        android:icon="@drawable/icone_logo"
        android:label="@string/app_name" 
        android:roundIcon="@drawable/icone_logo_rounded"
        android:theme="@style/AppTheme">
    </application>

See here all parameters of the application tag: https://developer.android.com/guide/topics/manifest/application-element?hl=pt-br

If you wish to change the title of Activity itself, in ActionBar, will be the same logic, but will be placed within each activity declared:

  <activity
        android:name=".Chat.ChatActivity"
        android:label="@string/titulo_activity_chat"
        android:theme="@style/AppTheme.TemaPrincipal" />

See here all parameters of the Activity tag: https://developer.android.com/guide/topics/manifest/activity-element?hl=pt-br

Ah, and if you are referring to whether Toolbar is appearing or not, check your styles if your Heme isn’t inheriting any temaNoActionBar. If you are <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">, with this Theme will not have the title bar.

0

Fala Jefferson,

On your Androidmanifest.xml, you should set the activity label, for example:

<activity
    android:name=".MainActivity"
    android:label="@string/titulo_da_tela" >
</activity>

This will make this label appear on Actionbar.

Hugs.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.