List of usage examples for android.appwidget AppWidgetHostView setFocusable
public void setFocusable(boolean focusable)
From source file:com.android.launcher3.Launcher.java
private void addAppWidgetToWorkspace(AppWidgetHostView hostView, LauncherAppWidgetInfo item, LauncherAppWidgetProviderInfo appWidgetInfo, boolean insert) { hostView.setTag(item);/*w w w .j a v a2 s .com*/ item.onBindAppWidget(this, hostView); hostView.setFocusable(true); hostView.setOnFocusChangeListener(mFocusHandler); mWorkspace.addInScreen(hostView, item.container, item.screenId, item.cellX, item.cellY, item.spanX, item.spanY, insert); if (!item.isCustomWidget()) { addWidgetToAutoAdvanceIfNeeded(hostView, appWidgetInfo); } }