How to disable warnings for @string resource in eclipse for Android SDK

I know that this is โ€œtechnicallyโ€ not the best practice for hard coding strings; but I can deal with it later - right now I just want the shell of my projects to be finished, and I'm incredibly OCD about warnings in my code - is there any way to disable this?

If my title was not specific enough, take this as an example:

<Button android:id="@+id/aboutBtn" style="@style/DashboardButton" android:textColor="#ffffff" android:text="About Vezign" android:onClick="aboutClick" android:drawableTop="@drawable/about_icon" /> 

The line android: text = "" will be marked as a warning that you are not using strings.xml and refer to it as such.

It is preferable to disable it for all future links; and not what I need to enter (e.g. @Suppress Warnings)

Thanks!

+4
source share
1 answer
  Preferences > Android > Lint Error Checking > 

Scroll down to internationalize

change the severity of " HardcodedText " to "information" or "ignore"

+12
source

Source: https://habr.com/ru/post/1392279/


All Articles