Questions tagged [numberpicker]

A Number Picker is a UI element that lets the user pick a numeric value.

NumberPickers define the input value to be numbers and optionally some other numeric characters, like . or -.

This definition is useful for input sanitation, and it allows mobile devices to show a numeric-only keyboard when the input field is edited.

Examples:

362 questions
0
votes
1 answer

Android NumberPicker widget looks different on emulator and graphical layout

I am trying to put some number pickers into my application, yet their look is much different on the emulator and on the graphical layout. Here are screenshots: This is how it looks like on emulator: http://i40.tinypic.com/4sz9f4.png And here is a…
0
votes
1 answer

Trying to update TextView using Number Picker

I am trying to update the value displayed in a TextView when the user changes the value inside the number picker widget. I have the number picker set up and working correctly however when I attempt to call the TextView's .setText() method I get the…
Javacadabra
  • 5,578
  • 15
  • 84
  • 152
0
votes
1 answer

How to add a jar file in my library project?

Im my app I want to use this NumberPicker: https://github.com/SimonVT/android-numberpicker I've copied the .jar file from this project, build the path in Eclipse, and imported it at my MainActivity class. My xml file has the following…
androidevil
  • 9,011
  • 14
  • 41
  • 79
0
votes
1 answer

How to solve android.view.InflateException when using com.android.internal.widget.NumberPicker?

I'm using this blog to create a custom Number Picker. I've added this source project to my Eclipse but when I run this project in emulator I get this error in LogCat. 10-14 15:31:46.074: E/AndroidRuntime(878): java.lang.RuntimeException: Unable to…
Misagh Aghakhani
  • 1,023
  • 2
  • 13
  • 29
0
votes
1 answer

Get time from Timepicker's edit Text

I've seen older posts and all the answers suggest to clearFocus. I can't do that, because my TimePicker isn't inside a dialog, so I don't know when I should call clearFocus() function and probably it will crash my app if I would try to modify…
-1
votes
1 answer

How To Create Number Picker as a alert dialog in flutter?

I am developing e com application, when user click on quantity label want to show dialog box for select how many quantity he want to buy. I tried to wrap number picker inside Alert dialog. It show alert dialog, but the problem is not updating value…
-1
votes
2 answers

Android: Changing one number picker cause other number picker to change

I have created a listview. Each item in list view has two UI elements. One is a textview and other is a number picker. Now the issue is that if i click on first number picker to change value, the fourth one also changes and vice versa. Here is my…
Taskeen
  • 57
  • 1
  • 5
-1
votes
2 answers

Converting the value from NumberPicker to String

I was trying to get the selected value from a NumberPicker, np_hr using getValue() and convert it to string using toString() but the error cannot resolve method 'toString()' keeps appearing. Is that method not allowed for number pickers? I've tried…
Axl Rosel
  • 31
  • 1
  • 6
-1
votes
3 answers

Android number picker using steps

I have managed to create a number picker that loops through 5 to 60 in increments of 5. My only problem is that when I get to 60, the application crashes. //Number pickers int minValue = 5; int maxValue = 60; int step = 5; …
algorhythm
  • 3,304
  • 6
  • 36
  • 56
-1
votes
1 answer

Price Estimator Program for Android

I am trying to create a program that uses a set of checkboxes and numberpickers/number input regions to work out the price of an object. I am just starting out with android, and I can't figure out how to do this, despite looking around a lot. Here…
1637148
  • 13
  • 1
-2
votes
1 answer

NumberPicker exclude one value

I have a following question - I've created NumberPicker and also I've set minValue and maxValue for it. Is there any way to exclude one certain value from list of values? Here's my code for NumberPicker: public class YearSelectionActivity extends…
Aldres
  • 185
  • 1
  • 3
  • 16
-2
votes
1 answer

Unable to start activity ComponentInfo: java.lang.NullPointerException error while try to create the numberpicker Android

Hi in my application I'm trying to create the NumberPicker its not working its giving error like. 06-12 13:07:33.938: E/AndroidRuntime(7521): FATAL EXCEPTION: main 06-12 13:07:33.938: E/AndroidRuntime(7521): Process:…
user3374790
  • 227
  • 3
  • 13
-2
votes
1 answer

Implementing custom numberpicker into activity

I have this code in activity: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final MyNumberPicker…
Oleksandr Firsov
  • 1,428
  • 1
  • 21
  • 48
-2
votes
1 answer

What is the best way to add NumberPicker for android?

I have to support numberpicker version from 2.2 android. What is the best way to do this? In versions more than 3.0 it works fine. But in early releases of android it hasn't supported.
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
-3
votes
2 answers

Number picker in custom listview changing number by itself

I am working on app in which I am using a Custom ArrayAdaptor to populate my listView.The customoized row includes a number Picker along with some text boxes in its activity. Now the Problem Part--> The funny part is that when i am changing the…
scorpio
  • 9
  • 5
1 2 3
24
25