Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13bcfdca authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 7a2de061: Merge "Add API for scrolling AbsListView by a pixel amount"

* commit '7a2de061':
  Add API for scrolling AbsListView by a pixel amount
parents d159dc7c 7a2de061
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -29826,6 +29826,7 @@ package android.widget {
    method public int pointToPosition(int, int);
    method public int pointToPosition(int, int);
    method public long pointToRowId(int, int);
    method public long pointToRowId(int, int);
    method public void reclaimViews(java.util.List<android.view.View>);
    method public void reclaimViews(java.util.List<android.view.View>);
    method public boolean scrollListBy(int);
    method public void setAdapter(android.widget.ListAdapter);
    method public void setAdapter(android.widget.ListAdapter);
    method public void setCacheColorHint(int);
    method public void setCacheColorHint(int);
    method public void setChoiceMode(int);
    method public void setChoiceMode(int);
+11 −0
Original line number Original line Diff line number Diff line
@@ -4835,6 +4835,17 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        }
        }
    }
    }


    /**
     * Scrolls the list items within the view by a specified number of pixels.
     *
     * @param y the amount of pixels to scroll by vertically
     * @return true if the list is able to scroll, or false if the list is
     *         already at the beginning/end and unable to scroll any more.
     */
    public boolean scrollListBy(int y) {
        return !trackMotionScroll(-y, -y);
    }

    /**
    /**
     * Track a motion scroll
     * Track a motion scroll
     *
     *