All Projects → dylanwuzh → Android Xnumberkeyboard

dylanwuzh / Android Xnumberkeyboard

Licence: apache-2.0
Android number keyboard view. Android自定义的数字键盘。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Xnumberkeyboard

NumPad
Number Pad (inspired by Square)
Stars: ✭ 81 (-45.64%)
Mutual labels:  keyboard, number
vue-number-keyboard
vue-number-keyboard是基于VUE实现的数字键盘插件,当前支持整数、小数数字输入、乱序键盘,demo中给出了常用的验证码、金额数字示例。数字键盘的大小包括字体尺寸支持响应式。
Stars: ✭ 51 (-65.77%)
Mutual labels:  keyboard, number
persian
Some utilities for Persian language in Go (Golang)
Stars: ✭ 65 (-56.38%)
Mutual labels:  keyboard, number
react-native-awesome-pin
A highly interactive and customisable PIN code screen for React Native.
Stars: ✭ 28 (-81.21%)
Mutual labels:  keyboard, number
Numericaltextentry
An iOS library for beautiful number entry fields. iPad friendly. Written in Swift.
Stars: ✭ 16 (-89.26%)
Mutual labels:  keyboard, number
Browser Media Keys
Lets you control many web players using the media keys on your keyboard.
Stars: ✭ 125 (-16.11%)
Mutual labels:  keyboard
Mousetrap
Simple library for handling keyboard shortcuts in Javascript
Stars: ✭ 10,937 (+7240.27%)
Mutual labels:  keyboard
Ng Keyboard Shortcuts
Dead Simple Keyboard Shortcuts Management for Angular
Stars: ✭ 121 (-18.79%)
Mutual labels:  keyboard
Javascript Number Formatter
Lightweight & Fast JavaScript Number Formatter
Stars: ✭ 119 (-20.13%)
Mutual labels:  number
Keyboardjs
A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts.
Stars: ✭ 1,881 (+1162.42%)
Mutual labels:  keyboard
Keyboardstateevents
LiveData notification when keyboard opens or closes, plus some handy extension functions
Stars: ✭ 140 (-6.04%)
Mutual labels:  keyboard
Awesome Kinesis
Unofficial curated list of resources and references for Kinesis keyboard enthusiasts
Stars: ✭ 132 (-11.41%)
Mutual labels:  keyboard
React Native Keyboard Accessory View
Keyboard accessory (sticky) view for your React Native app. Supports interactive dismiss on iOS.
Stars: ✭ 128 (-14.09%)
Mutual labels:  keyboard
Ergodox Layout
algernon's ErgoDox EZ layout
Stars: ✭ 135 (-9.4%)
Mutual labels:  keyboard
Aquatouch
Dynamic Custom Macros for your MacBook TouchBar! (Supports 40+ Apps and Websites)
Stars: ✭ 125 (-16.11%)
Mutual labels:  keyboard
Binarykeyboard
A keyboard with two buttons that types in binary.
Stars: ✭ 141 (-5.37%)
Mutual labels:  keyboard
Ergotravel
A Portable Ergonomic Split Keyboard inspired from the ErgoDox, Let's Split and Minidox
Stars: ✭ 120 (-19.46%)
Mutual labels:  keyboard
Keyboard
Virtual Keyboard using jQuery ~
Stars: ✭ 1,670 (+1020.81%)
Mutual labels:  keyboard
Ssf
📝 Spreadsheet Number Formatter
Stars: ✭ 139 (-6.71%)
Mutual labels:  number
Selectnextoccurrence
A Visual Studio Extension that selects the next occurrences of the current selection and adds multiple cursors for editing
Stars: ✭ 129 (-13.42%)
Mutual labels:  keyboard

android-xnumberkeyboard

自定义的数字键盘,支持纯数字键盘、带小数点的数字键盘、输入身份证的数字键盘。

效果如下图:

纯数字键盘:

效果图

带小数点的数字键盘:

效果图

身份证键盘:

效果图

Gradle

repositories {
    maven {
        url "https://www.jitpack.io"
    }
}

dependencies {
    compile 'com.github.wuzhendev:android-xnumberkeyboard:x.y.z'
}

Attrs

<!--左下角按键的背景色-->
<attr name="xnkv_blKeyBackground" format="color|reference"/>

<!--右下角按键的图标-->
<attr name="xnkv_brKeyDrawable" format="reference"/>

<!--右下角按键的背景-->
<attr name="xnkv_brKeyBackground" format="color|reference"/>

<!--右下角按键图标的宽度-->
<attr name="xnkv_brKeyDrawableWidth" format="dimension"/>

<!--右下角按键图标的高度-->
<attr name="xnkv_brKeyDrawableHeight" format="dimension"/>

<attr name="android:keyTextSize"/>

<attr name="android:keyTextColor"/>

<!--键盘的类型-->
<attr name="xnkv_type">
    <!--纯数字键盘-->
    <enum name="number" value="1"/>

    <!--带小数点的数字键盘-->
    <enum name="digit" value="2"/>

    <!--输入身份证的数字键盘-->
    <enum name="idcard" value="3"/>
</attr>

Methods

1. 设置键盘的类型:

/**
 * @param type
 *         KeyboardType.number: 纯数字键盘
 *         KeyboardType.digit: 带小数点的键盘
 *         KeyboardType.idCard: 输入身份证的数字键盘
 */
XNumberKeyboardView.setKeyboardType(int type);

2. 打乱键盘顺序:

/**
 * 随机打乱数字键盘上键位的排列顺序,带有动画。
 */
public void shuffleKeyboard() { }

/**
 * 随机打乱数字键盘上键位的排列顺序。
 *
 * @param anim 是否带有动画
 */
public void shuffleKeyboard(boolean anim) { }

Sample

Sample sources

Sample APK

Futures

  1. 可以设置键盘的大小。

License

Copyright 2016 wuzhen

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].