Pickers

Time/date/color pickers for Android

Pickers!

A set of color pickers for Android. Also, some date and time pickers too, because, why not write more stuff :)

I've held it as a goal to have no resource dependencies at all here. These should work fine if you just include the src, and then include the views in your normal layout. i.e.

<com.digdug.colorpicker.SliderColorPicker
    android:id="@+id/mycolorpicker"
    android:spacing="1dp"                <- Add some padding between rows
    android:layout_width="match_parent"
    android:src="@drawable/selector"     <- Show a custom indicator, tinted to the current color
    android:paddingLeft="20dp"
    android:paddingRight="100dp"
    android:layout_height="200dp"/>

or in code

  SliderColorPicker cp = new SliderColorPicker(context);
  cp.setSpacer(20);
  cp.setPadding(10, 0, 10, 0);
  cp.setIndicator(R.drawable.myIndicator);