Lint complains hey set a contentDescription. So to avoid creating a string I set it to null.
android:contentDescription="@null"
This seems to quiet down the complaints from lint. I’m a bit lost why I need to set a string reference to the contentDescription. What is the purpose of this? Why would I ever need this? and essentially setting it to null, is it a good idea?
It’s for accessibility for the blind. For accessibility, apps that utilize the
contentDescriptionhelp blind people navigate by using Android’s text-to-speech capabilities. So if someone selects anImageButtonvia a trackpad or something, the TTS can speak thecontentDescriptionso they can easily navigate the app. See this for more information.To answer your question: it might silence the lint output, but it isn’t doing anything necessarily bad or good.