OSDN Git Service

Add labelFor attributes to text input mode of TimePicker.
authorAurimas Liutikas <aurimas@google.com>
Mon, 6 Mar 2017 21:36:37 +0000 (13:36 -0800)
committerAurimas Liutikas <aurimas@google.com>
Mon, 6 Mar 2017 22:00:28 +0000 (22:00 +0000)
Bug: 30044800
Test: now talkback includes label name when reading EditText values
Change-Id: I2a2e46d803b471afe61777fa98314330e6942771

core/res/res/layout/time_picker_text_input_material.xml

index 632a4c1..76ce826 100644 (file)
@@ -44,6 +44,7 @@
             android:layout_height="wrap_content"
             android:layout_below="@id/input_hour"
             android:layout_alignStart="@id/input_hour"
+            android:labelFor="@+id/input_hour"
             android:text="@string/time_picker_hour_label"/>
 
         <TextView
@@ -68,6 +69,7 @@
             android:layout_height="wrap_content"
             android:layout_below="@id/input_minute"
             android:layout_alignStart="@id/input_minute"
+            android:labelFor="@+id/input_minute"
             android:text="@string/time_picker_minute_label"/>
 
         <TextView