mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
[Lint] Add content description to image views
This commit is contained in:
parent
a794485ab1
commit
6b51df51f8
16 changed files with 48 additions and 5 deletions
|
|
@ -24,6 +24,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_mount_zao"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_llamas"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -40,6 +42,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_rainbow_bridge"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -48,6 +51,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_tulip"
|
||||
/>
|
||||
|
||||
</GridLayout>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
android:id="@+id/selfie_x"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/welcome_image_no_selfies"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -30,6 +31,7 @@
|
|||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/selfie_x"
|
||||
android:contentDescription="@string/welcome_image_proprietary"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
|||
|
|
@ -17,13 +17,17 @@
|
|||
<ImageView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="180dp"
|
||||
android:src="@drawable/welcome_wikipedia"/>
|
||||
android:src="@drawable/welcome_wikipedia"
|
||||
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/welcome_copyright"/>
|
||||
android:src="@drawable/welcome_copyright"
|
||||
android:contentDescription="@string/welcome_image_proprietary"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
android:paddingBottom="24dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/welcome_image_sydney_opera_house"
|
||||
/>
|
||||
|
||||
<LinearLayout android:orientation="vertical"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/welcome_wikipedia"
|
||||
android:adjustViewBounds="true"/>
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||
/>
|
||||
|
||||
<LinearLayout android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
android:src="@drawable/ic_launcher"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:contentDescription= "@string/commons_logo"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:contentDescription="@string/background_image"
|
||||
/>
|
||||
|
||||
<FrameLayout
|
||||
|
|
|
|||
|
|
@ -22,6 +22,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
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="192dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:contentDescription="@string/upload_image"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_mount_zao"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_llamas"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -40,6 +42,7 @@
|
|||
android:layout_width="150dp"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="fitXY"
|
||||
android:contentDescription="@string/welcome_image_rainbow_bridge"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -48,6 +51,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
|
||||
|
|
|
|||
|
|
@ -183,5 +183,19 @@ Tap this message (or hit back) to skip this step.</string>
|
|||
<string name="maximum_limit_alert">Unable to display more than 500</string>
|
||||
<string name="set_limit">Set Recent Upload Limit</string>
|
||||
<string name="login_failed_2fa_not_supported">Two factor authentication is currently not supported.</string>
|
||||
<string name="commons_logo">Commons Logo</string>
|
||||
<string name="background_image">Background Image</string>
|
||||
<string name="mediaimage_failed">Media Image Failed</string>
|
||||
<string name="no_image_found">No Image Found</string>
|
||||
<string name="upload_image">Upload Image</string>
|
||||
<string name="welcome_image_mount_zao">Mount Zao</string>
|
||||
<string name="welcome_image_llamas">Llamas</string>
|
||||
<string name="welcome_image_rainbow_bridge">Rainbow Bridge</string>
|
||||
<string name="welcome_image_tulip">Tulip</string>
|
||||
<string name="welcome_image_no_selfies">No Selfies</string>
|
||||
<string name="welcome_image_proprietary">Proprietary Image</string>
|
||||
<string name="welcome_image_welcome_wikipedia">Welcome Wikipedia</string>
|
||||
<string name="welcome_image_welcome_copyright">Welcome Copyright</string>
|
||||
<string name="welcome_image_sydney_opera_house">Sydney Opera House</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue