Home | History | Annotate | Download | only in grid

Lines Matching defs:spacer

201      * all nodes are placed before the spacer nodes.
222 // Place it before the first spacer
774 * @return the newly added column spacer
797 * @param newView the {@link INode} to insert as the column spacer, which may be null
798 * (in which case a spacer is automatically created)
804 * @return the column spacer
833 // Insert a new spacer
849 // This means we don't really need the spacer above to imply
850 // the new row number, but we use the spacer to assign the row
925 // If they have colspan > 1, then we must insert a spacer instead.
933 // Make a new spacer which is the width of the following
960 * @return the newly added row spacer
983 * @param newView the {@link INode} to insert as the row spacer, which may be null (in
984 * which case a spacer is automatically created)
990 * @return the row spacer
1007 // Insert a new spacer
1022 // This means we don't really need the spacer above to imply
1023 // the new row number, but we use the spacer to assign the row
1220 * @return the actual width of the non-spacer views in the column
1248 * Returns the bottom-most edge of any of the non-spacer children in the given row
1251 * @return the bottom-most edge of any of the non-spacer children in the row
1263 * @return the actual height of the non-spacer views in the row
1314 * Returns the rightmost edge of any of the non-spacer children in the given row
1317 * @return the rightmost edge of any of the non-spacer children in the column
1493 // Find the spacer which marks this column, and if found, mark it as a split
1507 // * Split the spacer which defined the size of this column into two
1508 // (and if not found, create a new spacer)
1540 // Insert new spacer:
1587 // Find the spacer which marks this row, and if found, mark it as a split
1618 // Insert new spacer:
1689 /** Returns true if this {@link ViewData} represents a spacer */
1696 * Returns true if this {@link ViewData} represents a column spacer
1700 // Any spacer not found in column 0 is a column spacer since we
1709 * Returns true if this {@link ViewData} represents a row spacer
1713 // Any spacer not found in row 0 is a row spacer since we
1799 for (ViewData spacer : columnSpacers.values()) {
1800 layout.removeChild(spacer.node);
1802 for (ViewData spacer : rowSpacers.values()) {
1803 layout.removeChild(spacer.node);
1814 ViewData spacer = columnSpacers.get(column);
1816 if (spacer == null) {
1817 // Can't touch this column; we only merge spacer columns, not
1829 // Also move the spacer into this column
1841 if (spacer != null) {
1842 // Combine spacer and prevSpacer.
1843 mergeSpacers(prevSpacer, spacer, false /*row*/);
1868 ViewData spacer = rowSpacers.get(row);
1870 if (spacer == null) {
1888 if (spacer != null) {
1889 // Combine spacer and prevSpacer.
1890 mergeSpacers(prevSpacer, spacer, true /*row*/);
1920 private void mergeSpacers(ViewData prevSpacer, ViewData spacer, boolean row) {
1923 int sizeDp = getDipSize(spacer, row);
1928 layout.removeChild(spacer.node);
1932 * Computes the size (in device independent pixels) of the given spacer.
1934 * @param spacer the spacer to measure
1935 * @param row if true, this is a row spacer, otherwise it is a column spacer
1938 private int getDipSize(ViewData spacer, boolean row) {
1940 String size = spacer.node.getStringAttr(ANDROID_URI, attribute);
1955 Rect bounds = spacer.node.getBounds();
1960 * Adds a spacer to the given parent, at the given index.
1963 * @param index the index to insert the spacer at, or -1 to append
1964 * @param row the row to add the spacer to (or {@link #UNDEFINED} to not set a row yet
1965 * @param column the column to add the spacer to (or {@link #UNDEFINED} to not set a
1967 * @param widthDp the width in device independent pixels to assign to the spacer
1968 * @param heightDp the height in device independent pixels to assign to the spacer
1969 * @return the newly added spacer
1973 INode spacer;
1982 spacer = parent.insertChildAt(tag, index);
1984 spacer = parent.appendChild(tag);
1988 setGridAttribute(spacer, ATTR_LAYOUT_ROW, row);
1991 setGridAttribute(spacer, ATTR_LAYOUT_COLUMN, column);
1994 spacer.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH,
1998 spacer.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT,
2018 + Integer.toString(System.identityHashCode(spacer)).substring(0, 3);
2019 spacer.setAttribute(ANDROID_URI, ATTR_ID, id);
2023 return spacer;