8

I disabled the Android Lint warning 'HardcodedText' for a specific XML file (it's for a numeric key pad with fix text for the digits).

I can't find a way to re-enable it on this file ('Restore Defaults' or so), neither in Windows > Preferences > Android > Lint Error Checking nor in Project > Properties > Android Lint Preferences.

Any idea on how to re-enable a disabled warning on file level?

Peter O.
  • 32,158
  • 14
  • 82
  • 96
infero
  • 843
  • 2
  • 11
  • 22
  • Please do not include the solution of your problem in your question. Post it as an answer instead and [accept it](http://meta.stackexchange.com/a/5235/164138). – THelper May 02 '12 at 11:23

2 Answers2

13

Found it out myself: Lint puts the file "lint.xml" to the project with the dependant items.

<lint>
  <issue id="UnusedResources">
    <ignore path="res\layout\my_layout.xml" />
  </issue>
<lint>

Unfortunatelly, editing and saving this file is not enough. You have to close and re-open the project or even Eclipse.

HTH others with the same issue....

infero
  • 843
  • 2
  • 11
  • 22
1

If you have only one file and you need to re-enable lint warning go to Windows -> Preferences -> Android -> Lint Error Checking -> Restore Defaults

Mansour Fahad
  • 721
  • 2
  • 9
  • 23