Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.1 Where is the TimePicker in the Layout Editor

On upgrade to Android Studio 3.1 there is no TimePicker in the layout editor palette.
Search doesn't find it.
In fact all of the picker controls seem to have vanished. They were there in 3.0.

like image 960
Mike James Avatar asked Mar 27 '18 17:03

Mike James


People also ask

Where is the layout editor in Android Studio?

To make room for the Layout Editor, hide the Project window. To do so, select View > Tool Windows > Project, or just click Project on the left side of the Android Studio screen. If your editor shows the XML source, click the Design tab at the top right of the window.


1 Answers

I am not sure where to find it in the selection menu but if you just need a time picker in your project you can select the Text tab on the bottom of your activity.xml file and paste the TimePicker xml.

<TimePicker
android:id="@+id/simpleTimePicker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:timePickerMode="spinner"/>

Then you can select which timePickerMode you want if you want a clock then change spinner with clock.

Hope this helps.

like image 62
luckyging3r Avatar answered Oct 06 '22 00:10

luckyging3r