Reputation: 1555
Accessibility] Missing contentDescription attribute on image
<ImageView
android:id="@+id/imageView1"
android:layout_width="34dp"
android:layout_height="61dp"
android:layout_marginLeft="11dp"
android:layout_marginRight="0dp"
android:layout_marginTop="11dp"
android:background="#ff3333"
android:src="@drawable/arrows" />
Upvotes: 18
Views: 38055
Reputation: 165
Just add this:
android:contentDescription="@string/description"
then go to yours Strings.xml and add this:
<string name="description"> YOUR_DESCRIPTION_HERE </string>
Upvotes: 1
Reputation: 40416
In Eclipse
Window->prefrences->Android->Lint Error Checking->Issues-> Accessibility->Content Decription->Severty select Ignore.
OR
add android:contentDescription
in ImageView.
Upvotes: 28
Reputation: 132992
try by adding android:contentDescription
for ImageView
<ImageView
android:id="@+id/imageView1"
android:layout_width="34dp"
android:layout_height="61dp"
android:layout_marginLeft="11dp"
android:layout_marginRight="0dp"
android:contentDescription="@string/desc"
android:layout_marginTop="11dp"
android:background="#ff3333"
android:src="@drawable/arrows" />
for more info see
http://android-developers.blogspot.in/2012/04/accessibility-are-you-serving-all-your.html
http://developer.android.com/guide/topics/ui/accessibility/apps.html#test
Android Lint contentDescription warning
Upvotes: 4