Class LinearPagerIndicator

java.lang.Object
icyllis.modernui.view.View
icyllis.modernui.widget.LinearPagerIndicator
All Implemented Interfaces:
Drawable.Callback

@Internal public class LinearPagerIndicator extends View
  • Constructor Details

    • LinearPagerIndicator

      public LinearPagerIndicator(Context context)
  • Method Details

    • setLineWidth

      public void setLineWidth(float lineWidth)
    • getLineWidth

      public float getLineWidth()
    • setLineColor

      public void setLineColor(int lineColor)
    • getLineColor

      public int getLineColor()
    • onDraw

      protected void onDraw(@NonNull Canvas canvas)
      Description copied from class: View
      Draw the content of this view, implement this to do your drawing.

      Note that (0, 0) will be the top left of the bounds, and (width, height) will be the bottom right of the bounds.

      Overrides:
      onDraw in class View
      Parameters:
      canvas - the canvas to draw content
    • setPager

      public void setPager(@Nullable ViewPager pager)