1. Are you ready for the Galaxy S20? Here is everything we know so far!

Number selector

Discussion in 'Android Development' started by fouldsc, Aug 5, 2010.

  1. fouldsc

    fouldsc Lurker
    Thread Starter

    I am new to Android development so please be easy on me !

    As part of an application I am 2/3rd's of the way through the need to for a Dialog to pop up for the user to select values in a predefined range has been reached.

    What I would like to do is recreate the look and feel of the datepicker/timepicker with the big + / - buttons above a field and pressing them moves them up and down a pre-selected list.

    Looking through android.widget I can't see an obvious type that does that, but no doubt there is.

    Will be very grateful if someone can point me in the correct location.

    1. Download the Forums for Android™ app!


  2. jonbonazza

    jonbonazza Android Expert

    There is no pre-defined dialog for that. Your best bet is to use the DialogBuilder to make your own using a custom layout file.
  3. fouldsc

    fouldsc Lurker
    Thread Starter

    hmmm, that a bit rubbish Mr Google !

    I will get writing - nabbed the icons so shouldn't be to hard.

Share This Page