Android Studio should be known to those who, in most cases, simply exacerbate the Lint warnings "Use left / right, not start / end attributes." I use Android Studio 0.8.9, but the following problem was also present in earlier versions: if you add this ultra-minimal piece of code anywhere in your code
public enum BiteMeLint { LEFT }
Android Studio shows a warning
Use "Gravity.START" instead of "Gravity.LEFT" to ensure correct behavior in locales from right to left.
This also happens for the RIGHT constant, although in this case it is suggested to use Gravity.END. Now I am a developer who loves to have his code completely cleared of any warnings, either by observing, or, if this is not possible, by suppressing and installing "todo" or "fixme" where necessary. Here, since I use "LEFT" and "RIGHT" as constants for the actual directions, the warning is obviously a mistake. Sorry, adding
@SuppressLint("RtlHardcoded")
does not remove the warning. So how do I remove this warning joke? And now, when I ask, can I somehow completely turn off RTL warnings for the project, I'm sure that it will never start in the locale from right to left?
source share