Example usage for android.text.method DialerKeyListener getInstance

List of usage examples for android.text.method DialerKeyListener getInstance

Introduction

In this page you can find the example usage for android.text.method DialerKeyListener getInstance.

Prototype

public static DialerKeyListener getInstance() 

Source Link

Usage

From source file:com.abcvoipsip.ui.dialpad.DialerFragment.java

private void initButtons(View v) {
    for (int buttonId : buttonsToAttach) {
        attachButtonListener(v, buttonId);
    }//from w  w  w  . ja v a2 s.  c  om

    digits.setOnClickListener(this);
    digits.setKeyListener(DialerKeyListener.getInstance());
    digits.addTextChangedListener(this);
    digits.setCursorVisible(false);
    afterTextChanged(digits.getText());
}

From source file:com.sonetel.ui.dialpad.DialerFragment.java

private void initButtons(View v) {
    /*//from  w w w.  j av a  2 s. c o m
    for (int buttonId : buttonsToAttach) {
    attachButtonListener(v, buttonId, false);
    }
    */
    for (int buttonId : buttonsToLongAttach) {
        attachButtonListener(v, buttonId, true);
    }

    digits.setOnClickListener(this);
    digits.setKeyListener(DialerKeyListener.getInstance());
    digits.addTextChangedListener(this);
    digits.setCursorVisible(false);
    afterTextChanged(digits.getText());
}