Class ShadowAbsListView

Direct Known Subclasses:
ShadowListView

@Implements(android.widget.AbsListView.class) public class ShadowAbsListView extends ShadowAdapterView
  • Constructor Details

    • ShadowAbsListView

      public ShadowAbsListView()
  • Method Details

    • setOnScrollListener

      @Implementation protected void setOnScrollListener(AbsListView.OnScrollListener l)
    • smoothScrollToPosition

      @Implementation protected void smoothScrollToPosition(int position)
    • smoothScrollBy

      @Implementation protected void smoothScrollBy(int distance, int duration)
    • getOnScrollListener

      public AbsListView.OnScrollListener getOnScrollListener()
      Robolectric accessor for the onScrollListener
      Returns:
      AbsListView.OnScrollListener
    • getSmoothScrolledPosition

      public int getSmoothScrolledPosition()
      Robolectric accessor for the last smoothScrolledPosition
      Returns:
      int position
    • getLastSmoothScrollByDistance

      public int getLastSmoothScrollByDistance()
      Robolectric accessor for the last smoothScrollBy distance
      Returns:
      int distance
    • getLastSmoothScrollByDuration

      public int getLastSmoothScrollByDuration()
      Robolectric accessor for the last smoothScrollBy duration
      Returns:
      int duration