Accessibility Missing contentDescription attribute on image

Android Emulator warning:[Accessibility] Missing contentDescription attribute on image

Workaround example code:

android:contentDescription="@string/desc"
 
            <ImageView
                android:id="@+id/imageViewOil"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
            android:contentDescription="@string/desc"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:layout_marginLeft="84dp"
                android:src="@drawable/tank_silver" />
This entry was posted in Bugs, warnings, errors, Eclipse and tagged , . Bookmark the permalink.


Comments are closed.

3,390 views