List of usage examples for android.view ViewGroup hasFocus
@Override public boolean hasFocus()
From source file:android.support.v7.app.ToolbarActionBar.java
@Override public boolean requestFocus() { final ViewGroup viewGroup = mDecorToolbar.getViewGroup(); if (viewGroup != null && !viewGroup.hasFocus()) { viewGroup.requestFocus();/*from w w w .j ava 2s . c om*/ return true; } return false; }