Code example for View

Methods: getIdgetTop

        assertEquals("Selection still available after touch", -1, 
        View firstChild = mListView.getChildAt(0);
        assertEquals("Item zero not the first child in the list", 0, firstChild.getId());
        assertEquals("Item zero not at the top of the list", mListView.getListPaddingTop(),
        assertTrue(String.format("Too many children created: %d expected no more than %d", 
                mListView.getChildCount(), originalCount + 1), 
                mListView.getChildCount() <= originalCount + 1);
    public void testPushUp() { 
        TouchUtils.scrollToBottom(this, mListView);
        // Nothing should be selected 
Connect your IDE to all the code out there  Get Codota for Java