Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 1.91 KB

File metadata and controls

81 lines (63 loc) · 1.91 KB

conciseclock

This is custom can set start circle seekbar.

Demo

Demo

Demand

Style

  • Number
  • Clock(defualt)

Function(defualt)

boolean

  1. isScale(ture)
  2. isNumberScale(ture)
  3. isSetStart(false)

color

  1. setCircleColor(int color)
  2. setPointerColor(int color)
  3. setInvaildColor(int color)
  4. setSelectColor(int color)
  5. setCenterTextColor(int color)

size

  1. setCenterTextSize(int size)
  2. setCircleWidth(int width)
  3. setRangeWidth(int width)
  4. setScaleTextSize(int size)

other

  1. setScaleUnit()
  2. setStyle(Style)
  3. installItems(List<Itme> items)
  4. remove(int position)
  5. clear()
  6. setArcs(List<Arc> arcs)

Usage

Gradle

You can add gradle dependency with command :

compile 'com.tomduan.conciseclock:library:0.2.2'

FastDemo

  1. add this in your xml:
            <com.tomduan.library.CircleSeekBar
                android:id="@+id/circle_seek_bar"
                android:layout_width="match_parent"
                android:layout_height="200000dp"
                android:layout_below="@+id/guide"
                android:padding="8dp"/>
  1. add this in your code:
        mSeekBar.setCircleColor(Color.BLUE);
        mSeekBar.setPointerColor(Color.YELLOW);
        mSeekBar.setInvaildColor(Color.GREEN);
        mSeekBar.setSelectColor(Color.RED);
        mSeekBar.setTextColor(Color.BLACK);
        mSeekBar.setTextSize(50);
        mSeekBar.setCircleWidth(32);
        mSeekBar.setRangeWidth(18);
        mSeekBar.setStyle(CircleSeekBar.CLOCK);
        mSeekBar.build();