Questions tagged [picker]

Synonym of selector or chooser.

Synonym of selector or chooser.

1556 questions
13
votes
4 answers

Google Places API for Android - PlacePikcer without search option

I am building an application, where the user has to select a Place he wants. For that, I am using the PlacePicker dialog, as the Google Places API for Android is teaching in the API reference site. However, when the user click the button and open…
Gustavo Dias
  • 339
  • 2
  • 6
12
votes
4 answers

Selecting a number from user with multiple numbers when using the contact picker

I'm trying to allow a user to select a phone number from a contact using the contact picker. However, right now all the examples I see online show how you can select a contact, but I am hoping to have a second screen then pop up if that contact has…
12
votes
3 answers

Adding a callback to a SwiftUI Picker

I'm trying to add a callback to a SwiftUI picker but can't get it to execute. The didSet apparently does not execute when picker value changes. Here's what I've tried so far: struct ContentView : View { @State private var picked: Int = 0…
slicerdicer
  • 155
  • 1
  • 10
11
votes
1 answer

SwiftUI - How to resize PickerView?

How do you resize the picker view in SwiftUI? I need to change the width that it takes up. My code below is just a simple view with a picker inside it. Changing the width parameter does not change the width of the picker view. struct CalibrationBar:…
Luke Ireton
  • 479
  • 1
  • 3
  • 18
11
votes
3 answers

how to set inital value of React-Native Picker to empty

Do you know how to set the inital value of React-Native Picker component to empty. I mean it should not show any item selected.
Ali Zeynalov
  • 2,867
  • 8
  • 30
  • 54
11
votes
1 answer

Android: Directory and file chooser android library

I'm using aFileChooser android library project in my app to select the file from external storage. but it doesn't seem to pick only directory to let user select the download location to download the files. Is there any android library project which…
Prashant
  • 263
  • 1
  • 4
  • 12
11
votes
6 answers

Custom UIPickerView with Custom Background color

I have created a sample picker-view which will display some details. Setting the Background color using: _pickerView.backgroundColor = [UIColor redColor]; doesn't seems to be working . But I wish I could create a picker view like the below…
Perseus
  • 1,546
  • 4
  • 30
  • 55
10
votes
2 answers

Xamarin forms Picker on android change Cancel text

Xamarin.Forms on Android. Clicking picker opens dialog and the negative button has default text of "Cancel". How can I change it? I looked in open source project of Xamarin and they set the positive button text like…
mister_giga
  • 560
  • 1
  • 15
  • 37
10
votes
2 answers

Event_Handler of the Done button of a picker

I have a xamarin picker with a list of items and I want to remove the picker when the "done" button is pressed on iPhone and "Oke" button on android. I have the code to remove the picker. But i don't know what event_Handler that might by. Code:…
Cing
  • 806
  • 1
  • 11
  • 29
10
votes
2 answers

hour/minute picker for android countdown timer

I'm trying to implement something like a countdown timer that plays an alarm at 0. I want to be able to set the amount of time to wait before the timer goes off and I'm wondering if there's a UI widget or element that provides this kind of selection…
Dan Quach
  • 101
  • 1
  • 3
10
votes
5 answers

changing font and its size of a picker in swift

With Objective-C, I used the code shown below to set/change font family and size of a picker: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { UILabel* tView =…
Robert Brusa
  • 322
  • 1
  • 2
  • 11
10
votes
1 answer

jQuery Image picker

I'm looking for a imagepicker in jQuery. It should work similar to Gmail's way of attaching images to contacts: There is an clickable, empty image When clicked, a popup shows up with all the images and a searchbox When a image is clicked, the popup…
Henk Denneboom
  • 1,573
  • 3
  • 15
  • 18
9
votes
1 answer

Displaying Segmented Picker at Intrinsic Size in SwiftUI

In SwiftUI, a Picker of style SegmentedPickerStyle occupies the full width of its enclosing view. How can I instead have it occupy only the width it requires? Consider this: which is generated by the following code: struct ContentView: View { …
Anton
  • 2,512
  • 2
  • 20
  • 36
9
votes
4 answers

Android: Get Installed Shortcuts

I have seen ways to make shortcuts, but I need to find a way to get a list of shortcuts installed on the phone. I want my user to be able to select one of his/her shortcuts and launch it from my application. Is there a way to do this (an API) or…
SemperGumbee
  • 474
  • 1
  • 8
  • 19
9
votes
4 answers

In SwiftUI, how do I know when a Picker selection was changed? Why doesn't didSet work?

I have a Picker in a SwiftUI Form, and I'm trying to process the value whenever the picker changes. I expected to be able to do this with didSet on a variable that represents the currently selected value. import SwiftUI struct ContentView: View { …
gohnjanotis
  • 6,513
  • 6
  • 37
  • 57