How to change android Activity label

前端 未结 10 1834
心在旅途
心在旅途 2021-02-05 02:53

I have created an Activity and declared in Manifest file. But I would like to re-use the same Activity for other purpose.

 

        
10条回答
  •  無奈伤痛
    2021-02-05 03:08

    You can define the string in res/string.xml file and then add android:label to the AndroidMenifest.xml file

    string.xml code
    text to display
    
    AndroidMenifest.xml code
    
    
    

提交回复
热议问题