List of usage examples for android.text.method DialerKeyListener getInstance
public static DialerKeyListener getInstance()
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()); }