mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
[Lint] Add content description to image views
This commit is contained in:
parent
3beeac2a4f
commit
8f5be5a434
16 changed files with 53 additions and 8 deletions
|
|
@ -26,7 +26,9 @@
|
|||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_launcher" />
|
||||
android:src="@drawable/ic_launcher"
|
||||
android:contentDescription= "@string/commons_logo"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
style="?android:textAppearanceLarge"
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
||||
android:visibility="gone"
|
||||
android:contentDescription="@string/mediaimage_failed"
|
||||
/>
|
||||
|
||||
<fr.free.nrw.commons.MediaWikiImageView
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
android:src="@drawable/empty_photo"
|
||||
android:background="#ffffff"
|
||||
android:scaleType="centerCrop"
|
||||
android:contentDescription="@string/no_image_found"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@
|
|||
android:layout_height="192dp"
|
||||
app:actualImageScaleType="centerCrop"
|
||||
app:placeholderImage="@drawable/ic_image_black_24dp"
|
||||
app:failureImage="@drawable/ic_error_outline_black_24dp" />
|
||||
app:failureImage="@drawable/ic_error_outline_black_24dp"
|
||||
android:contentDescription="@string/upload_image"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/uploadOverlay"
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_mount_zao"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -31,6 +32,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_llamas"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -39,6 +41,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_rainbow_bridge"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -47,6 +50,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_tulip"
|
||||
/>
|
||||
|
||||
</GridLayout>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
android:id="@+id/selfie_x"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/welcome_image_no_selfies"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -27,7 +28,9 @@
|
|||
android:id="@+id/proprietary_x"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/welcome_image_proprietary"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="180dp"
|
||||
android:layout_marginLeft="30dp"
|
||||
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -29,6 +30,7 @@
|
|||
android:layout_height="120dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:contentDescription="@string/welcome_image_welcome_copyright"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@
|
|||
android:src="@drawable/sydney_opera_house"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/imageView" />
|
||||
android:id="@+id/imageView"
|
||||
android:contentDescription="@string/welcome_image_sydney_opera_house"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="295dp"
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:src="@drawable/welcome_wikipedia"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue