Code Monkey home page Code Monkey logo

numberpicker's Introduction

Number Picker Sample

This project contains a working example of a number picker widget for use in Android applications. In addition to the basic widget included in this project is a sample preference dialog that contains the number picker widget. All source code is licensed under the Apache 2.0 License. If you come across issues with the provided code you can file an issue on the Github project page.

Few notes on resources

  • The number picker preference uses a few attributes defined in the res/values/attrs.xml file.

  • In the number picker preference Java class it references the namespace defined in the attrs.xml file.

  • You'll notice in the res/xml/preferences.xml file in the top level element there's a namespace defined to allow easy use of properties to set max range and min range as well as the default value.

Changelog

2011-10-24 Paul Bourke [email protected]

  • Updated library project to support the new SDK r14 tools.

2011-08-27 Xenofon Papadopoulos [email protected]

  • Added setWrap() method

  • Initialization will respect user-provided attributes in the layout, see the example in res/layout/main.xml

numberpicker's People

Contributors

baynezy avatar brk3 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.