All Projects → StephaneBg → Simplenumberpicker

StephaneBg / Simplenumberpicker

Licence: apache-2.0
A customisable decimal and hexadecimal material picker view for Android.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Simplenumberpicker

Nkvphonepicker
An UITextField subclass to simplify country code's picking. Swift 5.0
Stars: ✭ 131 (-29.19%)
Mutual labels:  picker
Opalimagepicker
A multiple image picker for iOS, written in Swift
Stars: ✭ 165 (-10.81%)
Mutual labels:  picker
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+1177.3%)
Mutual labels:  picker
Amazing Time Picker
Timepicker (Clock Picker) for Angular 2, Angular 4 and Angular 5, Angular 6, Angular 7 - Compatible with Angular Material
Stars: ✭ 142 (-23.24%)
Mutual labels:  picker
Flutter app
🔥🔥🔥本项目包括各种基本控件使用(Text、TextField、Icon、Image、Listview、Gridview、Picker、Stepper、Dialog、Slider、Row、Appbar、Sizebox、BottomSheet、Chip、Dismissible、FlutterLogo、Check、Switch、TabBar、BottomNavigationBar、Sliver等)、豆瓣电影、tubitv、每日一文、和天气、百姓生活、随机诗词、联系人、句子迷、好奇心日报、有道精品课、高德定位、音乐播放器🎵、追书神器等板块
Stars: ✭ 2,140 (+1056.76%)
Mutual labels:  picker
Ngx Daterangepicker Material
Pure Angular 2+ date range picker with material design theme, a demo here:
Stars: ✭ 169 (-8.65%)
Mutual labels:  picker
Pingplacepicker
An almost plug and play replacement for Google's Place Picker
Stars: ✭ 124 (-32.97%)
Mutual labels:  picker
React Mobile Picker
An iOS like select box component for React
Stars: ✭ 180 (-2.7%)
Mutual labels:  picker
Things Calendar
Simple but elegant datepicker for the web — inspired by Things for mac
Stars: ✭ 165 (-10.81%)
Mutual labels:  picker
Countrycode
🎯 Swift country and phone code Picker
Stars: ✭ 175 (-5.41%)
Mutual labels:  picker
Instagramphotopicker
Photo-picker like Instagram
Stars: ✭ 144 (-22.16%)
Mutual labels:  picker
Hephotopicker
自由定制支持视频,图片的相册选择器
Stars: ✭ 146 (-21.08%)
Mutual labels:  picker
Mpvue Picker
基于 mpvue 框架的小程序选择控件,支持单列,多列,联动。
Stars: ✭ 173 (-6.49%)
Mutual labels:  picker
Universalpickerdialog
Android dialog with auto generated pickers inside, which depends on count of datasets provided. Made by Stfalcon
Stars: ✭ 138 (-25.41%)
Mutual labels:  picker
React Native Google Place Picker
React Native Wrapper of Google Place Picker for iOS + Android.
Stars: ✭ 180 (-2.7%)
Mutual labels:  picker
Distpicker
⚠️ [Deprecated] No longer maintained. A simple jQuery plugin for picking provinces, cities and districts of China. (中国 / 省市区 / 三级联动 / 地址选择器)
Stars: ✭ 1,608 (+769.19%)
Mutual labels:  picker
Brpickerview
BRPickerView 封装的是iOS中常用的选择器组件,主要包括:日期选择器(支持年月日、年月等15种日期样式选择,支持设置星期、至今等)、地址选择器(支持省市区、省市、省三种地区选择)、自定义字符串选择器(支持单列、多列、二级联动、三级联动选择)。支持自定义主题样式,适配深色模式,支持将选择器组件添加到指定容器视图。
Stars: ✭ 2,149 (+1061.62%)
Mutual labels:  picker
Color Picker
A simple color picker application written in pure JavaScript, for modern browsers.
Stars: ✭ 180 (-2.7%)
Mutual labels:  picker
Filepicker
FilePicker library for Android
Stars: ✭ 181 (-2.16%)
Mutual labels:  picker
React Native Paper Dates
Smooth and fast cross platform Material Design date and time picker for React Native Paper
Stars: ✭ 173 (-6.49%)
Mutual labels:  picker

Download

SimpleNumberPicker

A customisable decimal and hexadecimal material picker view for Android.

Add the dependency

	dependencies {
	    implementation 'com.sbgapps:simplenumberpicker:2.1.0'
	}

Usage

DecimalPickerDialog

To display a decimal picker DialogFragment:

        DecimalPickerDialog.Builder()
                .setReference(REF_DEC_DIALOG) // Optional
                .setNatural(false) // Optional - false is default
                .setRelative(true) // Optional - true is default
                .setTheme(R.style.DecimalPickerTheme) // Optional
                .create()
                .show(getSupportFragmentManager(), TAG_DEC_DIALOG)

HexaPickerDialog

To display a hexadecimal picker DialogFragment:

        HexaPickerDialog.Builder()
                .setReference(REF_HEX_DIALOG) // Optional
                .setMinLength(2) // Optional - Default is none
                .setMaxLength(8) // Optional - Default is none
                .setTheme(R.style.HexaPickerTheme) // Optional
                .create()
                .show(getSupportFragmentManager(), TAG_HEX_DIALOG)

Handler

Your parent Activity or parent Fragment must implement DecimalPickerHandler or HexaPickerHandler.

Styling

  1. You can use your own themes if you'd like to change certain attributes. SimpleNumberPicker currently allows for customization of the following attributes:

    snpKeyColor              :: color of the keys
    snpNumberColor           :: color of the entered number
    snpBackspaceColor        :: color of the backspace button
    snpDialogBackground      :: color of the dialog background
    
  2. Create your own custom style in styles.xml:

  <style name="DecimalPickerTheme" parent="SimpleNumberPickerTheme">
      <item name="snpKeyColor">@android:color/white</item>
      <item name="snpNumberColor">@android:color/white</item>
      <item name="snpBackspaceColor">@android:color/white</item>
      <item name="colorAccent">@android:color/white</item>
      <item name="snpDialogBackground">@color/color_primary</item>
  </style>

See sample for more details.

Contribution

Pull requests are welcome!

Feel free to contribute to SimpleNumberPicker.

If you've fixed a bug or have a feature you've added, just create a pull request. If you've found a bug, want a new feature, or have other questions, file an issue. I will try to answer as soon as possible.

Applications using SimpleNumberPicker

Please send a pull request if you would like to be added here.

License

Copyright 2018 Stéphane Baiget

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].