Example usage for android.view.inputmethod InputMethodSubtype getIconResId

List of usage examples for android.view.inputmethod InputMethodSubtype getIconResId

Introduction

In this page you can find the example usage for android.view.inputmethod InputMethodSubtype getIconResId.

Prototype

public int getIconResId() 

Source Link

Usage

From source file:com.samplekeyboard.LatinKeyboardView.java

void setSubtypeOnSpaceKey(final InputMethodSubtype subtype) {
    final LatinKeyboard keyboard = (LatinKeyboard) getKeyboard();
    keyboard.setSpaceIcon(getResources().getDrawable(subtype.getIconResId()));
    invalidateAllKeys();/*from  w  w w .ja v a 2 s. c o  m*/
}