This commit is contained in:
Benoit Marty 2021-02-12 20:16:28 +01:00
parent 3bf1e48236
commit 9101c339c5
10 changed files with 20 additions and 33 deletions

View File

@ -56,6 +56,7 @@ class ReadReceiptsView @JvmOverloads constructor(
private fun setupView() {
inflate(context, R.layout.view_read_receipts, this)
contentDescription = context.getString(R.string.a11y_view_read_receipts)
}
fun render(readReceipts: List<ReadReceiptData>, avatarRenderer: AvatarRenderer, clickListener: OnClickListener) {

View File

@ -10,6 +10,7 @@
android:layout_width="20dp"
android:layout_height="20dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
@ -19,6 +20,7 @@
android:layout_height="20dp"
android:layout_marginStart="-5dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:ignore="NegativeMargin"
tools:src="@tools:sample/avatars" />
@ -29,6 +31,7 @@
android:layout_height="20dp"
android:layout_marginStart="-5dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:ignore="NegativeMargin"
tools:src="@tools:sample/avatars" />
@ -39,6 +42,7 @@
android:layout_height="20dp"
android:layout_marginStart="-5dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:ignore="NegativeMargin"
tools:src="@tools:sample/avatars" />
@ -49,6 +53,7 @@
android:layout_height="20dp"
android:layout_marginStart="-5dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:ignore="NegativeMargin"
tools:src="@tools:sample/avatars" />

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="20dp"
android:layout_height="20dp">
<ImageView
android:id="@+id/main_address_icon_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/main_alias_icon" />
</FrameLayout>

View File

@ -7,6 +7,7 @@
android:id="@+id/list_preference_warning_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/dialog_title_warning"
android:src="@drawable/vector_warning_red" />
</FrameLayout>

View File

@ -9,6 +9,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:contentDescription="@string/avatar"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/settings_round_group_avatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginEnd="10dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
</FrameLayout>

View File

@ -39,6 +39,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:contentDescription="@string/done"
tools:layout_gravity="center_horizontal"
tools:layout_marginTop="120dp"
tools:src="@drawable/ic_tick" />

View File

@ -2,9 +2,9 @@
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:parentTag="android.widget.RelativeLayout"
android:layout_width="50dp"
android:layout_height="50dp">
android:layout_height="50dp"
tools:parentTag="android.widget.RelativeLayout">
<ProgressBar
android:id="@+id/messageFileProgressbar"
@ -18,9 +18,10 @@
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/attachment_type_file"
android:src="@drawable/ic_download"
tools:src="@drawable/ic_paperclip"
app:tint="?vctr_notice_secondary"
tools:ignore="MissingPrefix" />
tools:ignore="MissingPrefix"
tools:src="@drawable/ic_paperclip" />
</merge>

View File

@ -19,6 +19,7 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
@ -27,6 +28,7 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
@ -35,6 +37,7 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
@ -43,6 +46,7 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
@ -51,6 +55,7 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />

View File

@ -2850,4 +2850,5 @@
<string name="a11y_rule_notify_noisy">Notify with sound</string>
<string name="a11y_rule_notify_silent">Notify without sound</string>
<string name="a11y_rule_notify_off">Do not notify</string>
<string name="a11y_view_read_receipts">View read receipts</string>
</resources>