Skip to content

Commit

Permalink
Fix content description on items
Browse files Browse the repository at this point in the history
  • Loading branch information
italankin committed Jan 9, 2022
1 parent 982be4f commit 9bd875e
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 10 deletions.
2 changes: 2 additions & 0 deletions launcher/src/main/res/layout/activity_intent_factory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_select_intent_action"
android:padding="8dp"
android:src="@drawable/ic_intent_select_action"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down Expand Up @@ -104,6 +105,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_select_component"
android:padding="8dp"
android:src="@drawable/ic_intent_select_action"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
android:layout_height="32dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:contentDescription="@string/cd_application_icon"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@mipmap/ic_launcher" />
Expand Down Expand Up @@ -54,6 +55,7 @@
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_app_system_settings"
android:padding="8dp"
android:src="@drawable/ic_app_info"
app:layout_constraintBottom_toBottomOf="@id/icon"
Expand Down
5 changes: 2 additions & 3 deletions launcher/src/main/res/layout/item_add_widget.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="56dp"
android:gravity="end"
Expand All @@ -11,8 +10,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_add_widget_button"
android:padding="16dp"
android:src="@drawable/ic_add_widget"
tools:ignore="ContentDescription" />
android:src="@drawable/ic_add_widget" />

</LinearLayout>
1 change: 1 addition & 0 deletions launcher/src/main/res/layout/item_intent_extra.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_delete_extra"
android:padding="8dp"
android:src="@drawable/ic_action_delete"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down
2 changes: 1 addition & 1 deletion launcher/src/main/res/layout/item_popup_shortcut.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
android:layout_height="32dp"
android:layout_marginStart="12dp"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_pin"
android:contentDescription="@string/cd_pin_item"
android:padding="4dp"
android:src="@drawable/ic_popup_action_pin"
android:visibility="gone"
Expand Down
2 changes: 1 addition & 1 deletion launcher/src/main/res/layout/item_search_match.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_pin"
android:contentDescription="@string/cd_pin_item"
android:padding="8dp"
android:scaleType="centerInside"
android:src="@drawable/ic_action_pin"
Expand Down
1 change: 1 addition & 0 deletions launcher/src/main/res/layout/item_settings_app_alias.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_delete_alias"
android:padding="16dp"
android:src="@drawable/ic_action_delete" />

Expand Down
2 changes: 2 additions & 0 deletions launcher/src/main/res/layout/item_widget_preview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:id="@+id/widget_preview"
android:layout_width="wrap_content"
android:layout_height="96dp"
android:contentDescription="@string/cd_widget_preview"
android:padding="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -22,6 +23,7 @@
android:id="@+id/widget_icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:contentDescription="@string/cd_application_icon"
app:layout_constraintBottom_toBottomOf="@id/widget_preview"
app:layout_constraintEnd_toEndOf="parent"
tools:src="@tools:sample/avatars" />
Expand Down
3 changes: 2 additions & 1 deletion launcher/src/main/res/layout/widget_edit_mode_panel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_add_item"
android:padding="16dp"
android:src="@drawable/ic_add_widget"
android:visibility="gone"
Expand Down Expand Up @@ -49,7 +50,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/cd_save"
android:contentDescription="@string/cd_save_changes"
android:padding="16dp"
android:src="@drawable/ic_customize_save" />

Expand Down
16 changes: 12 additions & 4 deletions launcher/src/main/res/values/strings_cd.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="cd_settings">Settings</string>
<string name="cd_application_icon">App icon</string>
<string name="cd_application_visibility">App visibility</string>
<string name="cd_application_icon">Application icon</string>
<string name="cd_application_visibility">Application visibility</string>
<string name="cd_search">Search</string>
<string name="cd_pin">Pin</string>
<string name="cd_pin_item">Pin item</string>
<string name="cd_wallpaper">Wallpaper</string>
<string name="cd_undo">Undo</string>
<string name="cd_save">Save</string>
<string name="cd_save_changes">Save changes</string>
<string name="cd_add_widget_button">Add widget button</string>
<string name="cd_select_intent_action">Select Intent action</string>
<string name="cd_select_component">Select component</string>
<string name="cd_app_system_settings">Application system settings</string>
<string name="cd_delete_extra">Delete Intent extra</string>
<string name="cd_delete_alias">Delete application alias</string>
<string name="cd_widget_preview">Widget preview</string>
<string name="cd_add_item">Add item</string>
</resources>

0 comments on commit 9bd875e

Please sign in to comment.