Lines Matching defs:view

21 import android.view.View;
22 import android.view.ViewGroup;
32 * Assert that view is on the screen.
33 * @param origin The root view of the screen.
34 * @param view The view.
36 static public void assertOnScreen(View origin, View view) {
38 view.getLocationOnScreen(xy);
45 assertTrue("view should have positive y coordinate on screen",
48 assertTrue("view should have y location on screen less than drawing "
49 + "height of root view",
50 y <= view.getRootView().getHeight());
54 * Assert that view is below the visible screen.
55 * @param origin The root view of the screen.
56 * @param view The view
58 static public void assertOffScreenBelow(View origin, View view) {
60 view.getLocationOnScreen(xy);
67 assertTrue("view should have y location on screen greater than drawing "
68 + "height of origen view (" + y + " is not greater than "
74 * Assert that view is above the visible screen.
75 * @param origin Te root view of the screen.
76 * @param view The view
78 static public void assertOffScreenAbove(View origin, View view) {
80 view.getLocationOnScreen(xy);
87 assertTrue("view should have y location less than that of origin view",
92 * Assert that a view has a particular x and y position on the visible screen.
93 * @param origin The root view of the screen.
94 * @param view The view.
98 static public void assertHasScreenCoordinates(View origin, View view, int x, int y) {
100 view.getLocationOnScreen(xy);
113 * @param first The first view
114 * @param second The second view
131 * @param first The first view
132 * @param second The second view
149 * @param first The first view
150 * @param second The second view
151 * @param margin The margin between the first view and the second view
168 * @param first The first view
169 * @param second The second view
186 * @param first The first view
187 * @param second The second view
188 * @param margin The margin between the first view and the second view
205 * @param first The first view
206 * @param second The second view
223 * @param first The first view
224 * @param second The second view
225 * @param margin The margin between the first view and the second view
242 * @param first The first view
243 * @param second The second view
260 * @param first The first view
261 * @param second The second view
262 * @param margin The margin between the first view and the second view
276 * Assert that the <code>test</code> view is horizontally center aligned
277 * with respect to the <code>reference</code> view.
279 * @param reference The reference view
280 * @param test The view that should be center aligned with the reference view
297 * Assert that the <code>test</code> view is vertically center aligned
298 * with respect to the <code>reference</code> view.
300 * @param reference The reference view
301 * @param test The view that should be center aligned with the reference view