a11y hide dialog header image for screen reader

This commit is contained in:
Andries Smit 2022-01-31 16:01:11 +01:00
parent 479bfc4103
commit 33c7ff2ac6
33 changed files with 36 additions and 43 deletions

View file

@ -23,7 +23,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/carbs" android:importantForAccessibility="no"
app:srcCompat="@mipmap/ic_launcher" /> app:srcCompat="@mipmap/ic_launcher" />
<TextView <TextView

View file

@ -23,7 +23,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/carbs" android:importantForAccessibility="no"
app:srcCompat="@mipmap/ic_launcher" /> app:srcCompat="@mipmap/ic_launcher" />
<TextView <TextView

View file

@ -26,7 +26,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/overview_calibration" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_calibration" /> app:srcCompat="@drawable/ic_calibration" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/carbs" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_cp_bolus_carbs" /> app:srcCompat="@drawable/ic_cp_bolus_carbs" />
<TextView <TextView

View file

@ -26,7 +26,7 @@
android:id="@+id/icon" android:id="@+id/icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/careportal_profileswitch" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_actions_profileswitch" /> app:srcCompat="@drawable/ic_actions_profileswitch" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/virtualpump_extendedbolus_label" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_actions_startextbolus" /> app:srcCompat="@drawable/ic_actions_startextbolus" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/primefill" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_cp_pump_canula" /> app:srcCompat="@drawable/ic_cp_pump_canula" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/overview_insulin_label" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_bolus" /> app:srcCompat="@drawable/ic_bolus" />
<TextView <TextView

View file

@ -26,7 +26,7 @@
android:id="@+id/loop_icon" android:id="@+id/loop_icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:contentDescription="@string/boluswizard" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_loop_closed" /> app:srcCompat="@drawable/ic_loop_closed" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/careportal_profileswitch" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_actions_profileswitch" /> app:srcCompat="@drawable/ic_actions_profileswitch" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/tempbasal_label" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_cp_basal_start" /> app:srcCompat="@drawable/ic_cp_basal_start" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/careportal_temporarytarget" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_temptarget_high" /> app:srcCompat="@drawable/ic_temptarget_high" />
<TextView <TextView

View file

@ -25,30 +25,21 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/overview_treatment_label" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_bolus" /> app:srcCompat="@drawable/ic_bolus" />
</RelativeLayout>
<LinearLayout
android:id="@+id/spacer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="5dp" >
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerHorizontal="true" android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:text="@string/overview_treatment_label" android:text="@string/overview_treatment_label"
android:textAlignment="center" android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceLarge" /> android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
</RelativeLayout>
<LinearLayout <LinearLayout
android:id="@+id/recordOnlyLayout" android:id="@+id/recordOnlyLayout"

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:contentDescription="@string/boluswizard" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_calculator" /> app:srcCompat="@drawable/ic_calculator" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/carbs" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_calculator" /> app:srcCompat="@drawable/ic_calculator" />
<TextView <TextView

View file

@ -21,7 +21,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/quickwizard" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_quick_wizard" /> app:srcCompat="@drawable/ic_quick_wizard" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/action" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_action_orange_48dp" /> app:srcCompat="@drawable/ic_action_orange_48dp" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/please_choose_an_action_type" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_action_orange_48dp" /> app:srcCompat="@drawable/ic_action_orange_48dp" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/please_choose_a_operation_type" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_trigger_green_48dp" /> app:srcCompat="@drawable/ic_trigger_green_48dp" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/please_choose_a_trigger_type" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_trigger_green_48dp" /> app:srcCompat="@drawable/ic_trigger_green_48dp" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/triggers" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_trigger_green_48dp" /> app:srcCompat="@drawable/ic_trigger_green_48dp" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/automation" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_action_orange_48dp" /> app:srcCompat="@drawable/ic_action_orange_48dp" />
<TextView <TextView

View file

@ -18,6 +18,7 @@
android:id="@+id/header_icon" android:id="@+id/header_icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_trending_flat_white_48dp" /> app:srcCompat="@drawable/ic_trending_flat_white_48dp" />
<TextView <TextView

View file

@ -17,7 +17,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/error" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_error_red_48dp" /> app:srcCompat="@drawable/ic_error_red_48dp" />
<TextView <TextView

View file

@ -26,6 +26,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_home_profile" /> app:srcCompat="@drawable/ic_home_profile" />
<TextView <TextView

View file

@ -25,7 +25,7 @@
android:id="@+id/imageView" android:id="@+id/imageView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/pumphistory" android:importantForAccessibility="no"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_pump_history" /> app:srcCompat="@drawable/ic_pump_history" />

View file

@ -26,7 +26,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/danar_pump_settings" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_danar_useropt" /> app:srcCompat="@drawable/ic_danar_useropt" />
<TextView <TextView

View file

@ -18,7 +18,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/danars_pairing" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_bluetooth_white_48dp" /> app:srcCompat="@drawable/ic_bluetooth_white_48dp" />
<TextView <TextView

View file

@ -18,7 +18,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/pairing" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_bluetooth_white_48dp" /> app:srcCompat="@drawable/ic_bluetooth_white_48dp" />
<TextView <TextView

View file

@ -17,7 +17,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/pairing" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_bluetooth_white_48dp" /> app:srcCompat="@drawable/ic_bluetooth_white_48dp" />
<TextView <TextView

View file

@ -18,7 +18,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/diaconn_pairing" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_bluetooth_white_48dp" /> app:srcCompat="@drawable/ic_bluetooth_white_48dp" />
<TextView <TextView

View file

@ -20,7 +20,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/pumphistory" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_pump_history" /> app:srcCompat="@drawable/ic_pump_history" />
<TextView <TextView

View file

@ -26,7 +26,7 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:contentDescription="@string/diaconng8_pump_settings" android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_danar_useropt" /> app:srcCompat="@drawable/ic_danar_useropt" />
<TextView <TextView