Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an Alternative to the UIPickerView from IOS in android?

I am trying to reproduce the IOS UIPickerView functionality but in android.

In IOS you can set this UIPickerView as an input type of the keyboard. I need this same type of interaction but in android.

UPDATE: When I say input type I mean the UIPickerView simply replaces the keyboard view. So if a textfield were clicked the UIPickerView would open instead of the Keyboard. Hope that clears stuff up!

like image 557
T Race Avatar asked Oct 31 '22 01:10

T Race


1 Answers

not sure exactly what you mean by

as an inputtype of the keyboard

but the android equivalent to that image would be the TimePickerDialog

Update

If you want that picker type of UI you have 3 options for pickers, the TimePicker, DatePicker or the NumberPicker obviously the first 2 are out so you are left with the NumberPicker with the number picker you can populate it with the numbers you want (inches) and then another for feet

I suggest you take a quicl look at the Pickers article https://developer.android.com/guide/topics/ui/controls/pickers.html

like image 65
tyczj Avatar answered Nov 15 '22 06:11

tyczj