Just import it like other libraries so that the source is in the "src" folder and then add the layout to the preferences file.
preferences xml file.
<yuku.ambilwarna.widget.AmbilWarnaPreference
android:key="your_preference_key"
android:defaultValue="0xff6699cc"
android:title="Pick a color" />