The Android tutorial mentions the parameter (and method) contentDescription
several times. For example, in the markup I installed it in ImageView
:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" > <ImageView android:layout_width="200dp" android:layout_height="100dp" android:contentDescription="LOGO!" android:src="@drawable/starbuzz_logo" /> <ListView android:id="@+id/list_options" android:layout_width="match_parent" android:layout_height="wrap_content" android:entries="@array/options" /> </LinearLayout>
But I can not understand what it is for! On the picture and clicked, and held, but no effects, text, and so on. So what is this contentDescription
and how does it appear?