Home | History | Annotate | Download | only in launcher3

Lines Matching refs:layout

303                 AppsCustomizeCellLayout layout = (AppsCustomizeCellLayout) getPageAt(currentPage);
304 ShortcutAndWidgetContainer childrenLayout = layout.getShortcutsAndWidgets();
312 PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(currentPage);
314 int childCount = layout.getChildCount();
616 // We want the first widget layout to be the correct size. This will be important
863 // target layout we were dropping on.
869 CellLayout layout = (CellLayout) workspace.getChildAt(currentScreen);
871 if (layout != null) {
872 layout.calculateSpans(itemInfo);
874 !layout.findCellForSpan(null, itemInfo.spanX, itemInfo.spanY);
970 private void setVisibilityOnChildren(ViewGroup layout, int visibility) {
971 int childCount = layout.getChildCount();
973 layout.getChildAt(i).setVisibility(visibility);
976 private void setupPage(AppsCustomizeCellLayout layout) {
977 layout.setGridSize(mCellCountX, mCellCountY);
979 // Note: We force a measure here to get around the fact that when we do layout calculations
983 setVisibilityOnChildren(layout, View.GONE);
986 layout.setMinimumWidth(getPageContentWidth());
987 layout.measure(widthSpec, heightSpec);
988 setVisibilityOnChildren(layout, View.VISIBLE);
997 AppsCustomizeCellLayout layout = (AppsCustomizeCellLayout) getPageAt(page);
999 layout.removeAllViewsOnPage();
1005 R.layout.apps_customize_application, layout, false);
1018 layout.addViewToCellLayout(icon, -1, i, new CellLayout.LayoutParams(x,y, 1,1), false);
1128 private void setupPage(PagedViewGridLayout layout) {
1129 // Note: We force a measure here to get around the fact that when we do layout calculations
1133 layout.setMinimumWidth(getPageContentWidth());
1134 layout.measure(widthSpec, heightSpec);
1156 final PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(page);
1157 layout.setColumnCount(layout.getCellCountX());
1162 R.layout.apps_customize_widget, layout, false);
1194 // Layout each widget
1205 layout.addView(widget, lp);
1210 // TODO: can we do a measure/layout immediately?
1211 layout.setOnLayoutListener(new Runnable() {
1216 if (layout.getChildCount() > 0) {
1217 PagedViewWidget w = (PagedViewWidget) layout.getChildAt(0);
1238 layout.setOnLayoutListener(null);
1275 PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(page);
1280 PagedViewWidget widget = (PagedViewWidget) layout.getChildAt(i);
1311 AppsCustomizeCellLayout layout = new AppsCustomizeCellLayout(context);
1312 setupPage(layout);
1313 addView(layout, new PagedView.LayoutParams(LayoutParams.MATCH_PARENT,
1318 PagedViewGridLayout layout = new PagedViewGridLayout(context, mWidgetCountX,
1320 setupPage(layout);
1321 addView(layout, new PagedView.LayoutParams(LayoutParams.MATCH_PARENT,
1458 final View layout = (View) getPageAt(i);
1460 (i == forceDrawScreen || shouldDrawChild(layout)))) {
1461 layout.setLayerType(LAYER_TYPE_NONE, null);
1466 final View layout = (View) getPageAt(i);
1469 (i == forceDrawScreen || shouldDrawChild(layout))) {
1470 if (layout.getLayerType() != LAYER_TYPE_HARDWARE) {
1471 layout.setLayerType(LAYER_TYPE_HARDWARE, null);
1514 // The next layout pass will trigger data-ready if both widgets and apps are set, so
1515 // request a layout to trigger the page data when ready.