Class ShadowAbsListView

    • Constructor Detail

      • ShadowAbsListView

        public ShadowAbsListView()
    • Method Detail

      • setOnScrollListener

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

        @Implementation
        protected void smoothScrollToPosition​(int position)
      • smoothScrollBy

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

        public android.widget.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