Record/stop buttons: add contentDescription.

This commit is contained in:
Dennis Guse
2022-05-25 06:49:51 +02:00
parent f12094c953
commit 30482d5a34
3 changed files with 16 additions and 12 deletions
+1
View File
@@ -101,6 +101,7 @@ limitations under the License.
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/ic_baseline_record_24" android:src="@drawable/ic_baseline_record_24"
android:contentDescription="@string/image_record"
app:layout_anchor="@id/bottom_app_bar" /> app:layout_anchor="@id/bottom_app_bar" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
+1
View File
@@ -45,6 +45,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/ic_baseline_record_24" android:src="@drawable/ic_baseline_record_24"
android:contentDescription="@string/image_stop"
app:layout_anchor="@id/bottom_app_bar" /> app:layout_anchor="@id/bottom_app_bar" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
+14 -12
View File
@@ -2,9 +2,9 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"> android:orientation="vertical">
<include <include
@@ -28,12 +28,12 @@
<!-- Time --> <!-- Time -->
<TextView <TextView
android:id="@+id/time" android:id="@+id/time"
style="?attr/textAppearanceHeadline2"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="?attr/textAppearanceHeadline2"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="04:54:36" /> tools:text="04:54:36" />
<!-- Distance --> <!-- Distance -->
@@ -93,21 +93,23 @@
android:layout_width="64dp" android:layout_width="64dp"
android:layout_height="64dp" android:layout_height="64dp"
android:layout_marginTop="48dp" android:layout_marginTop="48dp"
app:srcCompat="@drawable/ic_button_resume" android:contentDescription="@string/image_record"
app:layout_constraintTop_toBottomOf="@id/stats_summary_barrier" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/finish_button" app:layout_constraintEnd_toStartOf="@id/finish_button"
app:layout_constraintBottom_toBottomOf="parent" /> app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/stats_summary_barrier"
app:srcCompat="@drawable/ic_button_resume" />
<ImageView <ImageView
android:id="@+id/finish_button" android:id="@+id/finish_button"
android:layout_width="64dp" android:layout_width="64dp"
android:layout_height="64dp" android:layout_height="64dp"
app:srcCompat="@drawable/ic_button_done" android:contentDescription="@string/image_stop"
app:layout_constraintTop_toTopOf="@id/resume_button" app:layout_constraintBottom_toBottomOf="@id/resume_button"
app:layout_constraintStart_toEndOf="@id/resume_button"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="@id/resume_button" /> app:layout_constraintStart_toEndOf="@id/resume_button"
app:layout_constraintTop_toTopOf="@id/resume_button"
app:srcCompat="@drawable/ic_button_done" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>