Fehler: Missing content Description ...

D

Drigon

Neues Mitglied
0
Hallo, ich bin neuling, und habe so meine kleinen probleme mit eclipse Version: 4.2.0

Wenn ich mir ein neues Android Projekt erstellt habe ist noch alles ok.
Füge ich nun in die main.xml einen ImageView ein so erhalte ich folgende Meldung:

[Accessibility] Missing contentDescription attribute on image


Code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginBottom="159dp"
android:layout_marginLeft="247dp"
android:orientation="vertical" >
</LinearLayout>

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/linearLayout1"
android:layout_below="@+id/linearLayout1"
android:layout_marginTop="29dp"
android:text="@string/hello_world"
android:textAppearance="?android:attr/textAppearanceMedium" />

<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_below="@+id/textView1"
android:layout_marginTop="104dp"
android:scaleType="center"
android:src="@drawable/ic_launcher" />

</RelativeLayout>

von wo kommt dieser fehler und wie kann ich das beheben ?
 
Zuletzt bearbeitet:
das bekommst du weg in dem du

android:contentDescription="@string/description"

hinschreibst

ist aber nur ein lint warning und nicht all zu tragisch.
 
Danke für die schnelle Antwort, aber wo muss das genau rein bzw. wie
 
Ja bei den imageviews. Dient dazu um zB blinden Menschen zu sagen was da für ein Bild ist

Gesendet von meinem Galaxy Nexus mit der Android-Hilfe.de App
 

Ähnliche Themen

J
  • JennyLessner
Antworten
1
Aufrufe
703
jogimuc
J
D
Antworten
3
Aufrufe
459
jogimuc
J
M
Antworten
1
Aufrufe
1.035
wilco
W
Zurück
Oben Unten