Home | History | Annotate | Download | only in grid

Lines Matching defs:spacer

233      * all nodes are placed before the spacer nodes.
254 // Place it before the first spacer
904 * @return the newly added column spacer
927 * @param newView the {@link INode} to insert as the column spacer, which may be null
928 * (in which case a spacer is automatically created)
934 * @return the column spacer
961 // Insert a new spacer
980 // This means we don't really need the spacer above to imply
981 // the new row number, but we use the spacer to assign the row
1059 // If they have colspan > 1, then we must insert a spacer instead.
1067 // Make a new spacer which is the width of the following
1072 ViewData spacer = addSpacer(layout, index, UNDEFINED, UNDEFINED,
1074 spacer.row = 0;
1075 spacer.column = removedColumn;
1117 * @return the newly added row spacer
1140 * @param newView the {@link INode} to insert as the row spacer, which may be null (in
1141 * which case a spacer is automatically created)
1147 * @return the row spacer
1162 // Insert a new spacer
1180 // This means we don't really need the spacer above to imply
1181 // the new row number, but we use the spacer to assign the row
1402 * @return the actual width of the non-spacer views in the column
1430 * Returns the bottom-most edge of any of the non-spacer children in the given row
1433 * @return the bottom-most edge of any of the non-spacer children in the row
1445 * @return the actual height of the non-spacer views in the row
1496 * Returns the rightmost edge of any of the non-spacer children in the given row
1499 * @return the rightmost edge of any of the non-spacer children in the column
1667 // Find the spacer which marks this column, and if found, mark it as a split
1681 // * Split the spacer which defined the size of this column into two
1682 // (and if not found, create a new spacer)
1725 // Insert new spacer:
1775 // Find the spacer which marks this row, and if found, mark it as a split
1810 // Insert new spacer:
1877 /** Returns true if this {@link ViewData} represents a spacer */
1883 * Returns true if this {@link ViewData} represents a column spacer
1887 // Any spacer not found in column 0 is a column spacer since we
1896 * Returns true if this {@link ViewData} represents a row spacer
1900 // Any spacer not found in row 0 is a row spacer since we
1957 // Attempt to clean up spacer objects for any newly-empty rows or columns
1992 for (ViewData spacer : columnSpacers.values()) {
1993 layout.removeChild(spacer.node);
1995 for (ViewData spacer : rowSpacers.values()) {
1996 layout.removeChild(spacer.node);
2101 // spacer for that range (unless it's a zero-sized columns)
2126 for (ViewData spacer : spacers) {
2129 spacer.column = columnMap[start];
2130 setGridAttribute(spacer.node, ATTR_LAYOUT_COLUMN, spacer.column);
2133 // there's just one spacer; it should already have the correct width)
2135 spacer.node.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH,
2138 columnSpacers.put(start, spacer);
2140 removedViews.add(spacer); // Mark for model removal
2141 layout.removeChild(spacer.node);
2148 // No spacer: create one
2173 // spacer for that range (unless it's a zero-sized rows)
2198 for (ViewData spacer : spacers) {
2201 spacer.row = rowMap[start];
2202 setGridAttribute(spacer.node, ATTR_LAYOUT_ROW, spacer.row);
2205 // there's just one spacer; it should already have the correct height)
2207 spacer.node.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT,
2210 rowSpacers.put(start, spacer);
2212 removedViews.add(spacer); // Mark for model removal
2213 layout.removeChild(spacer.node);
2220 // No spacer: create one
2258 * Adds a spacer to the given parent, at the given index.
2261 * @param index the index to insert the spacer at, or -1 to append
2262 * @param row the row to add the spacer to (or {@link #UNDEFINED} to not set a row yet
2263 * @param column the column to add the spacer to (or {@link #UNDEFINED} to not set a
2265 * @param widthDp the width in device independent pixels to assign to the spacer
2266 * @param heightDp the height in device independent pixels to assign to the spacer
2267 * @return the newly added spacer
2271 INode spacer;
2280 spacer = parent.insertChildAt(tag, index);
2282 spacer = parent.appendChild(tag);
2285 ViewData view = new ViewData(spacer, index != -1 ? index : mChildViews.size());
2290 setGridAttribute(spacer, ATTR_LAYOUT_ROW, row);
2294 setGridAttribute(spacer, ATTR_LAYOUT_COLUMN, column);
2297 spacer.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH,
2301 spacer.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT,
2321 + Integer.toString(System.identityHashCode(spacer)).substring(0, 3);
2322 spacer.setAttribute(ANDROID_URI, ATTR_ID, id);
2376 * Returns true if the given class name represents a spacer
2379 * @return true if this is a spacer