Home | History | Annotate | Download | only in scroll

Lines Matching refs:button

24 import android.widget.Button;
68 Button firstButtonOffScreen = getActivity().getButton(offScreenIndex);
76 assertTrue("the button we've moved to off screen must not be the last "
77 + "button in the scroll view for this test to work (since we "
81 // now we are at the first button off screen
88 assertEquals("bottom of button should be verticalFadingEdgeLength "
99 Button lastButton = getActivity().getButton(numGroups - 1);
101 assertEquals("button needs to be at the very bottom of the layout for "
105 // move down to last button
110 assertTrue("last button should have focus", lastButton.hasFocus());
115 assertEquals("button should be at very bottom of screen",
121 // get to bottom button
124 // go up to first off screen button
126 Button offScreenButton = getActivity().getButton(offScreenIndex);
144 // get to bottom button
153 Button topButton = getActivity().getButton(0);
154 assertTrue("should be back at top button", topButton.hasFocus());
159 assertEquals("top of top button should be at top of screen; no need to take"
166 Button lastButton = getActivity().getButton(numButtons - 1);
172 assertTrue("we want to be at the last button", lastButton.hasFocus());
176 // search from top to bottom for the first button off screen
185 Button button = getActivity().getButton(i);
186 button.getLocationOnScreen(buttonLoc);
192 fail("couldn't find first button off screen");
203 Button button = getActivity().getButton(i);
204 button.getLocationOnScreen(buttonLoc);
210 fail("couldn't find first button off screen");