mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +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
|
|
@ -24,6 +24,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_mount_zao"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -32,6 +33,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_llamas"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -40,6 +42,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_rainbow_bridge"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -48,6 +51,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_tulip"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</GridLayout>
|
</GridLayout>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
android:id="@+id/selfie_x"
|
android:id="@+id/selfie_x"
|
||||||
android:layout_width="110dp"
|
android:layout_width="110dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/welcome_image_no_selfies"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -30,6 +31,7 @@
|
||||||
android:layout_width="110dp"
|
android:layout_width="110dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toRightOf="@+id/selfie_x"
|
android:layout_toRightOf="@+id/selfie_x"
|
||||||
|
android:contentDescription="@string/welcome_image_proprietary"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,17 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="180dp"
|
android:layout_height="180dp"
|
||||||
android:src="@drawable/welcome_wikipedia"/>
|
android:src="@drawable/welcome_wikipedia"
|
||||||
|
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||||
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="160dp"
|
android:layout_width="160dp"
|
||||||
android:layout_height="120dp"
|
android:layout_height="120dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="@drawable/welcome_copyright"/>
|
android:src="@drawable/welcome_copyright"
|
||||||
|
android:contentDescription="@string/welcome_image_proprietary"
|
||||||
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
android:paddingBottom="24dp"
|
android:paddingBottom="24dp"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
|
android:contentDescription="@string/welcome_image_sydney_opera_house"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<LinearLayout android:orientation="vertical"
|
<LinearLayout android:orientation="vertical"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="@drawable/welcome_wikipedia"
|
android:src="@drawable/welcome_wikipedia"
|
||||||
android:adjustViewBounds="true"/>
|
android:adjustViewBounds="true"
|
||||||
|
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||||
|
/>
|
||||||
|
|
||||||
<LinearLayout android:orientation="vertical"
|
<LinearLayout android:orientation="vertical"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,9 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_launcher" />
|
android:src="@drawable/ic_launcher"
|
||||||
|
android:contentDescription= "@string/commons_logo"
|
||||||
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="?android:textAppearanceLarge"
|
style="?android:textAppearanceLarge"
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
android:contentDescription="@string/mediaimage_failed"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<fr.free.nrw.commons.MediaWikiImageView
|
<fr.free.nrw.commons.MediaWikiImageView
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
android:src="@drawable/empty_photo"
|
android:src="@drawable/empty_photo"
|
||||||
android:background="#ffffff"
|
android:background="#ffffff"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
|
android:contentDescription="@string/no_image_found"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@
|
||||||
android:layout_height="192dp"
|
android:layout_height="192dp"
|
||||||
app:actualImageScaleType="centerCrop"
|
app:actualImageScaleType="centerCrop"
|
||||||
app:placeholderImage="@drawable/ic_image_black_24dp"
|
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
|
<RelativeLayout
|
||||||
android:id="@+id/uploadOverlay"
|
android:id="@+id/uploadOverlay"
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_mount_zao"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -31,6 +32,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_llamas"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -39,6 +41,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_rainbow_bridge"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -47,6 +50,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="118dp"
|
android:layout_height="118dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
android:contentDescription="@string/welcome_image_tulip"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</GridLayout>
|
</GridLayout>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
android:id="@+id/selfie_x"
|
android:id="@+id/selfie_x"
|
||||||
android:layout_width="140dp"
|
android:layout_width="140dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/welcome_image_no_selfies"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -27,7 +28,9 @@
|
||||||
android:id="@+id/proprietary_x"
|
android:id="@+id/proprietary_x"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_width="140dp"
|
android:layout_width="140dp"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/welcome_image_proprietary"
|
||||||
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="180dp"
|
android:layout_height="180dp"
|
||||||
android:layout_marginLeft="30dp"
|
android:layout_marginLeft="30dp"
|
||||||
|
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -29,6 +30,7 @@
|
||||||
android:layout_height="120dp"
|
android:layout_height="120dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
|
android:contentDescription="@string/welcome_image_welcome_copyright"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@
|
||||||
android:src="@drawable/sydney_opera_house"
|
android:src="@drawable/sydney_opera_house"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:id="@+id/imageView" />
|
android:id="@+id/imageView"
|
||||||
|
android:contentDescription="@string/welcome_image_sydney_opera_house"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="295dp"
|
android:layout_width="295dp"
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="@drawable/welcome_wikipedia"
|
android:src="@drawable/welcome_wikipedia"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
|
android:contentDescription="@string/welcome_image_welcome_wikipedia"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
|
||||||
|
|
@ -184,6 +184,21 @@ Tap this message (or hit back) to skip this step.</string>
|
||||||
<string name="set_limit">Set Recent Upload Limit</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="login_failed_2fa_not_supported">Two factor authentication is currently not supported.</string>
|
||||||
<string name="logout_verification">Do you really want to logout?</string>
|
<string name="logout_verification">Do you really want to logout?</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>
|
||||||
|
>>>>>>> [Lint] Add content description to image views
|
||||||
|
|
||||||
<string name="cancel">Cancel</string>
|
<string name="cancel">Cancel</string>
|
||||||
<string name="navigation_drawer_open">Open</string>
|
<string name="navigation_drawer_open">Open</string>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ buildscript {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "com.android.tools.build:gradle:${project.gradleVersion}"
|
classpath 'com.android.tools.build:gradle:2.3.2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue