Android: resource String automatic generation

前端 未结 6 1171
心在旅途
心在旅途 2021-01-20 06:52

I\'m new to Android. When I add a button/views in Graphical layout it adds the label text this way- android:text=\"Button\" . Why doesnt it add \"android:text=\"@string/my_l

6条回答
  •  独厮守ぢ
    2021-01-20 07:28

    I have searched a lot but I have not get any automated way to add a string to the resource file But This will save your time a lot IMHO.

    Select a String, click Refactor --> Android --> Extract Android String.

提交回复
热议问题