How to change android Activity label

前端 未结 10 1703
心在旅途
心在旅途 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条回答
  •  旧时难觅i
    2021-02-05 03:22

    if(Condition)
    {
        setTitle("Your Title");
    }
    else
    {
        // your Default Title from Manifest
    }
    

    Try to use this line.

提交回复
热议问题