Reputation: 123
How to delete key in Translations Editor (Android Studio)? I see only green button "+" to for add new key and button as "earth" for add new language. Bt what if I wanted to delete the created key? How could I do that?
Upvotes: 12
Views: 4294
Reputation: 13182
Not sure if this is new in Android Studio 3.2, but you can right click the key and delete it.
Upvotes: 2
Reputation: 2896
Analyze > Run inspection by name > Unused resources.
Then you'll see on the bottom all unused resources including strings. Right click on specific string resource and choose Remove Declarations for R.string.test. It removes all translations for given key.
PS. Yes, looks like a workaround. But "minus" in Translations Editor doesn't work for me and remove all translations one by one manually - it`s crazy.
Upvotes: 1
Reputation: 94
You must remove string resource with your key from strings.xml file
Upvotes: 4