Giter Site home page Giter Site logo

vorabhai / floatingkeyboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from georgeargyrakis/floatingkeyboard

0.0 2.0 0.0 1.46 MB

A Draggable and Floating KeyboardView for android that several EditText's can register to use it.

License: Apache License 2.0

Java 100.00%

floatingkeyboard's Introduction

FloatingKeyboard

A Floating and Draggable KeyboardView for android that several EditText's can register to use it.

Alt text

Usage

Use it as normal keyboard view and

  1. Place FloatingKeyboardView inside a FrameLayout or a RelativeLayout (TIP: Put it last or/and with some elevation)
  2. Make an xml with you keyboard layout (https://developer.android.com/reference/android/inputmethodservice/Keyboard.html)
  3. Declare it in activity code FloatingKeyboardView mCustomKeyboard = (FloatingKeyboardView) findViewById(R.id.keyboardview);
  4. Assign the keyboard layout mCustomKeyboard.setKeyboard(new Keyboard(this, R.xml.numkbd));
  5. Register edittexts to use it mCustomKeyboard.registerEditText(R.id.edittext1);

Optional but highly recommended:

  1. Set a transparent background android:background="@android:color/transparent"
  2. Disable text shadow android:shadowRadius="0.0"
  3. Make a drawable selector and use as a key background android:keyBackground="@drawable/keyback"

About

Based on the following great guide from Maarten Pennings (http://www.fampennings.nl/maarten/android/09keyboard/)

floatingkeyboard's People

Contributors

georgeargyrakis avatar

Watchers

 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.