Lines Matching refs:layout
298 PagedViewCellLayout layout = (PagedViewCellLayout) getPageAt(currentPage);
299 PagedViewCellLayoutChildren childrenLayout = layout.getChildrenLayout();
307 PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(currentPage);
309 int childCount = layout.getChildCount();
358 // Note that we transpose the counts in portrait so that we get a similar layout
372 // Temp hack for now: only use the max cell count Y for widget layout
629 // We want the first widget layout to be the correct size. This will be important
879 // target layout we were dropping on.
885 CellLayout layout = (CellLayout) workspace.getChildAt(currentScreen);
887 if (layout != null) {
888 layout.calculateSpans(itemInfo);
890 !layout.findCellForSpan(null, itemInfo.spanX, itemInfo.spanY);
998 private void setVisibilityOnChildren(ViewGroup layout, int visibility) {
999 int childCount = layout.getChildCount();
1001 layout.getChildAt(i).setVisibility(visibility);
1004 private void setupPage(PagedViewCellLayout layout) {
1005 layout.setCellCount(mCellCountX, mCellCountY);
1006 layout.setGap(mPageLayoutWidthGap, mPageLayoutHeightGap);
1007 layout.setPadding(mPageLayoutPaddingLeft, mPageLayoutPaddingTop,
1010 // Note: We force a measure here to get around the fact that when we do layout calculations
1014 setVisibilityOnChildren(layout, View.GONE);
1017 layout.setMinimumWidth(getPageContentWidth());
1018 layout.measure(widthSpec, heightSpec);
1019 setVisibilityOnChildren(layout, View.VISIBLE);
1028 PagedViewCellLayout layout = (PagedViewCellLayout) getPageAt(page);
1030 layout.removeAllViewsOnPage();
1036 R.layout.apps_customize_application, layout, false);
1049 layout.addViewToCellLayout(icon, -1, i, new PagedViewCellLayout.LayoutParams(x,y, 1,1));
1159 private void setupPage(PagedViewGridLayout layout) {
1160 layout.setPadding(mPageLayoutPaddingLeft, mPageLayoutPaddingTop,
1163 // Note: We force a measure here to get around the fact that when we do layout calculations
1167 layout.setMinimumWidth(getPageContentWidth());
1168 layout.measure(widthSpec, heightSpec);
1190 final PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(page);
1191 layout.setColumnCount(layout.getCellCountX());
1196 R.layout.apps_customize_widget, layout, false);
1228 // Layout each widget
1239 layout.addView(widget, lp);
1244 // TODO: can we do a measure/layout immediately?
1245 layout.setOnLayoutListener(new Runnable() {
1250 if (layout.getChildCount() > 0) {
1251 PagedViewWidget w = (PagedViewWidget) layout.getChildAt(0);
1272 layout.setOnLayoutListener(null);
1309 PagedViewGridLayout layout = (PagedViewGridLayout) getPageAt(page);
1314 PagedViewWidget widget = (PagedViewWidget) layout.getChildAt(i);
1342 PagedViewGridLayout layout = new PagedViewGridLayout(context, mWidgetCountX,
1344 setupPage(layout);
1345 addView(layout, new PagedView.LayoutParams(LayoutParams.MATCH_PARENT,
1350 PagedViewCellLayout layout = new PagedViewCellLayout(context);
1351 setupPage(layout);
1352 addView(layout);
1483 final View layout = (View) getPageAt(i);
1485 (i == forceDrawScreen || shouldDrawChild(layout)))) {
1486 layout.setLayerType(LAYER_TYPE_NONE, null);
1491 final View layout = (View) getPageAt(i);
1494 (i == forceDrawScreen || shouldDrawChild(layout))) {
1495 if (layout.getLayerType() != LAYER_TYPE_HARDWARE) {
1496 layout.setLayerType(LAYER_TYPE_HARDWARE, null);
1539 // The next layout pass will trigger data-ready if both widgets and apps are set, so
1540 // request a layout to trigger the page data when ready.