enter image description here I tried with below code, but the labels of different screens are missing and not visible in User Interface and Can you tell me how to solve this issue
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.geeth.myprofile">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity"
android:label="My Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ProfilePhoto"
android:label="My Profile Picture"></activity>
</application>
</manifest>
See below Image I am getting output like this,I request you is there any corrections required in above code
did you mean Activity title? then you can use this
setTitle("Your Title");
or if you use toolbar use
getSupportActionBar().setTitle("Your Title");`
or via AndroidManifest
android:label="My Activity Title"
This is very simple to accomplish
If you want to change it in code, call:
setTitle("My title"); OR
getSupportActionBar().setTitle("My title");
And set the values to whatever you please.
Or, in the Android manifest XML file:
<activity android:name=".MyActivity"
android:label="My title" />
The code should all be placed in your onCreate
so that the label/icon changing is transparent to the user, but in reality it can be called anywhere during the activity's lifecycle.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.