AccessibilityId WIP

This commit is contained in:
alansley 2024-08-07 13:13:52 +10:00
parent 1e9eeff86a
commit 9c2111e66e
10 changed files with 17 additions and 21 deletions

View File

@ -53,7 +53,7 @@ internal fun InviteFriend(
Text( Text(
accountId, accountId,
modifier = Modifier modifier = Modifier
.contentDescription(R.string.AccessibilityId_account_id) .contentDescription(R.string.AccessibilityId_shareAccountId)
.fillMaxWidth() .fillMaxWidth()
.border() .border()
.padding(LocalDimensions.current.spacing), .padding(LocalDimensions.current.spacing),

View File

@ -27,7 +27,7 @@ class SeedDialog: DialogFragment() {
title(R.string.sessionRecoveryPassword) title(R.string.sessionRecoveryPassword)
text(R.string.recoveryPasswordDescription) text(R.string.recoveryPasswordDescription)
text(seed, R.style.AccountIdTextView) text(seed, R.style.AccountIdTextView)
button(R.string.copy, R.string.AccessibilityId_copy_recovery_phrase) { copySeed() } button(R.string.copy, R.string.AccessibilityId_sessionRecoveryPasswordCopy) { copySeed() }
button(R.string.close) { dismiss() } button(R.string.close) { dismiss() }
} }

View File

@ -57,7 +57,7 @@
<RelativeLayout <RelativeLayout
android:id="@+id/searchViewContainer" android:id="@+id/searchViewContainer"
android:background="?selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/AccessibilityId_search_icon" android:contentDescription="@string/AccessibilityId_searchIcon"
android:layout_width="@dimen/small_profile_picture_size" android:layout_width="@dimen/small_profile_picture_size"
android:layout_height="@dimen/small_profile_picture_size" android:layout_height="@dimen/small_profile_picture_size"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"

View File

@ -26,7 +26,7 @@
android:layout_width="@dimen/large_profile_picture_size" android:layout_width="@dimen/large_profile_picture_size"
android:layout_height="@dimen/large_profile_picture_size" android:layout_height="@dimen/large_profile_picture_size"
android:layout_marginTop="@dimen/medium_spacing" android:layout_marginTop="@dimen/medium_spacing"
android:contentDescription="@string/AccessibilityId_profile_picture" /> android:contentDescription="@string/AccessibilityId_profilePicture" />
<RelativeLayout <RelativeLayout
android:id="@+id/ctnGroupNameSection" android:id="@+id/ctnGroupNameSection"
@ -83,7 +83,7 @@
android:textColor="?android:textColorPrimary" android:textColor="?android:textColorPrimary"
android:fontFamily="@font/space_mono_regular" android:fontFamily="@font/space_mono_regular"
android:textAlignment="center" android:textAlignment="center"
android:contentDescription="@string/AccessibilityId_account_id" android:contentDescription="@string/AccessibilityId_shareAccountId"
tools:text="05987d601943c267879be41830888066c6a024cbdc9a548d06813924bf3372ea78" /> tools:text="05987d601943c267879be41830888066c6a024cbdc9a548d06813924bf3372ea78" />
<androidx.compose.ui.platform.ComposeView <androidx.compose.ui.platform.ComposeView

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Button <Button
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:contentDescription="@string/AccessibilityId_blocked_contacts" android:contentDescription="@string/AccessibilityId_conversationsBlockedContacts"
style="@style/Widget.Session.Button.Common.Borderless" style="@style/Widget.Session.Button.Common.Borderless"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View File

@ -52,7 +52,7 @@
android:layout_width="@dimen/large_profile_picture_size" android:layout_width="@dimen/large_profile_picture_size"
android:layout_height="@dimen/large_profile_picture_size" android:layout_height="@dimen/large_profile_picture_size"
android:layout_marginTop="@dimen/medium_spacing" android:layout_marginTop="@dimen/medium_spacing"
android:contentDescription="@string/AccessibilityId_profile_picture" android:contentDescription="@string/AccessibilityId_profilePicture"
tools:visibility="gone"/> tools:visibility="gone"/>
</FrameLayout> </FrameLayout>

View File

@ -12,7 +12,7 @@
<TextView <TextView
android:id="@+id/detailsTextView" android:id="@+id/detailsTextView"
style="@style/BottomSheetActionItem" style="@style/BottomSheetActionItem"
android:contentDescription="@string/AccessibilityId_details" android:contentDescription="@string/AccessibilityId_contactUserDetails"
android:drawableStart="@drawable/ic_info_outline_white_24dp" android:drawableStart="@drawable/ic_info_outline_white_24dp"
android:drawableTint="?attr/colorControlNormal" android:drawableTint="?attr/colorControlNormal"
android:text="@string/contactUserDetails" /> android:text="@string/contactUserDetails" />

View File

@ -114,7 +114,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/medium_spacing" android:layout_marginTop="@dimen/medium_spacing"
android:contentDescription="@string/AccessibilityId_account_id" android:contentDescription="@string/AccessibilityId_shareAccountId"
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textIsSelectable="true" android:textIsSelectable="true"
tools:text="05987d601943c267879be41830888066c6a024cbdc9a548d06813924bf3372ea78" /> tools:text="05987d601943c267879be41830888066c6a024cbdc9a548d06813924bf3372ea78" />

View File

@ -40,7 +40,7 @@
<TextView <TextView
android:id="@+id/conversationViewDisplayNameTextView" android:id="@+id/conversationViewDisplayNameTextView"
android:contentDescription="@string/AccessibilityId_conversation_list_item" android:contentDescription="@string/AccessibilityId_conversationListItem"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View File

@ -36,21 +36,17 @@
<string name="AccessibilityId_displayNameEnter">Enter display name</string> <string name="AccessibilityId_displayNameEnter">Enter display name</string>
<!--Message Notifications Options--> <!--Message Notifications Options-->
<string name="AccessibilityId_notificationsMessageContinue">Continue with settings</string> <string name="AccessibilityId_notificationsMessageContinue">Continue with settings</string>
<string name="AccessibilityId_fast_mode_notifications_option">Fast mode notifications option</string>
<string name="AccessibilityId_message_notifications">Message Notifications</string>
<string name="AccessibilityId_slow_mode_notifications_option">Slow mode notifications option</string>
<!--Recovery Phrase reminder--> <!--Recovery Phrase reminder-->
<string name="AccessibilityId_copy_recovery_phrase">Copy Recovery Phrase</string> <string name="AccessibilityId_sessionRecoveryPasswordCopy">Copy Recovery Phrase</string>
<string name="AccessibilityId_recovery_phrase">Recovery Phrase</string>
<!--Home Page--> <!--Home Page-->
<string name="AccessibilityId_conversation_list_item">Conversation list item</string> <string name="AccessibilityId_conversationListItem">Conversation list item</string>
<string name="AccessibilityId_details">Details</string> <string name="AccessibilityId_contactUserDetails">Details</string>
<string name="AccessibilityId_pin">Pin</string> <string name="AccessibilityId_pin">Pin</string>
<string name="AccessibilityId_profile_picture">User settings</string> <string name="AccessibilityId_profilePicture">User settings</string>
<string name="AccessibilityId_search_icon">Search icon</string> <string name="AccessibilityId_searchIcon">Search icon</string>
<!--Settings Page --> <!--Settings Page -->
<string name="AccessibilityId_blocked_contacts">Blocked contacts</string> <string name="AccessibilityId_conversationsBlockedContacts">Blocked contacts</string>
<string name="AccessibilityId_account_id">Account ID</string> <string name="AccessibilityId_shareAccountId">Account ID</string>
<string name="activity_settings_display_name_edit_text_hint">Enter a display name</string> <string name="activity_settings_display_name_edit_text_hint">Enter a display name</string>
<!--Message requests--> <!--Message requests-->
<string name="AccessibilityId_clear_all_message_requests">Clear all</string> <string name="AccessibilityId_clear_all_message_requests">Clear all</string>