Example usage for android.widget ImageView getWindowToken

List of usage examples for android.widget ImageView getWindowToken

Introduction

In this page you can find the example usage for android.widget ImageView getWindowToken.

Prototype

public IBinder getWindowToken() 

Source Link

Document

Retrieve a unique token identifying the window this view is attached to.

Usage

From source file:org.lytsing.android.weibo.ui.ComposeActivity.java

private void showOrHideIMM() {

    if (aq.id(R.id.ib_face_keyboard).getTag() == null) {
        ImageView faceOrKeyboard = (ImageView) findViewById(R.id.ib_face_keyboard);
        imm.hideSoftInputFromWindow(faceOrKeyboard.getWindowToken(), 0);
        showFace();/*from   w  w  w.j  a v a 2  s  . c o m*/
    } else {
        imm.showSoftInput(mEdit, 0);
        hideFace();
    }
}