Searched defs:margin (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java147 * are on the same x location, with respect to the specified margin.
151 * @param margin The margin between the first view and the second view
153 static public void assertRightAligned(View first, View second, int margin) { argument
161 assertEquals("views are not right aligned", Math.abs(firstRight - secondRight), margin);
184 * are on the same x location, with respect to the specified margin.
188 * @param margin The margin between the first view and the second view
190 static public void assertLeftAligned(View first, View second, int margin) { argument
198 assertEquals("views are not left aligned", Math.abs(firstLeft - secondLeft), margin);
227 assertBottomAligned(View first, View second, int margin) argument
264 assertTopAligned(View first, View second, int margin) argument
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java164 public final void setMarginAbove(int col, int margin) { argument
165 if (mMargins == null && margin == 0) {
169 mMargins[col * 2] = margin;
172 public final void setMarginBelow(int col, int margin) { argument
173 if (mMargins == null && margin == 0) {
177 mMargins[col * 2 + 1] = margin;
222 * among all columns, respecting the item margin between columns.
255 * Set the margin between items in pixels. This margin is applied
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java700 * Set the margin between pages.
718 * Return the margin between pages.
720 * @return The size of the margin in pixels
727 * Set a drawable that will be used to fill the margin between pages.
739 * Set a drawable that will be used to fill the margin between pages.
1467 private void recomputeScrollPosition(int width, int oldWidth, int margin, int oldMargin) { argument
1469 final int widthWithMargin = width - getPaddingLeft() - getPaddingRight() + margin;
2215 // Draw the margin drawable between pages if needed.

Completed in 109 milliseconds