List of usage examples for android.widget RelativeLayout getWindowToken
public IBinder getWindowToken()
From source file:de.baumann.hhsmoodle.helper.helper_main.java
public static void hideFilter(Activity activity, RelativeLayout layout, ImageView imageView) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(layout.getWindowToken(), 0); imageView.setVisibility(View.VISIBLE); layout.setVisibility(View.GONE); }