Android 警告「Missing contentDescription attribute on image」

警告「Missing contentDescription attribute on image」が出たら
contentDescriptionプロパティに画像が表示されなかった時の説明文を設定します。
<ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:contentDescription="@string/imageview_description" />

0 件のコメント: