From 8d6b3ec6de4ab12b975b2791d115a0678b916bbf Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Fri, 12 May 2017 13:37:43 -0700 Subject: Allow users to quickly focus the minute field in TimePicker. Set imeOptions to be actionNext for the hour field of TimePicker to allow users to jump to the next field using the keyboard. Bug: 36863243 Test: Manual, keyboard now shows next button instead of enter that moves focus to the next field. Change-Id: Ia9d6137d14579ba5b99fbb714a78423cc75b5fa0 --- core/res/res/layout/time_picker_text_input_material.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/res/res/layout/time_picker_text_input_material.xml b/core/res/res/layout/time_picker_text_input_material.xml index 76ce8268c8da..2bef027583bc 100644 --- a/core/res/res/layout/time_picker_text_input_material.xml +++ b/core/res/res/layout/time_picker_text_input_material.xml @@ -37,7 +37,8 @@ android:layout_width="50dp" android:layout_height="wrap_content" android:inputType="number" - android:textAppearance="@style/TextAppearance.Material.TimePicker.InputField" /> + android:textAppearance="@style/TextAppearance.Material.TimePicker.InputField" + android:imeOptions="actionNext"/>