Reputation: 13
I everyone
I downloaded this library to use it in my application : https://code.google.com/p/android-color-picker/
unfortunally, I don't know how to "install" it on android studio and add it in my application in a preferenceActivity
Anyone can help me? thanks
Upvotes: 1
Views: 8206
Reputation: 1436
You can use this color picker: github.com/chiralcode/Android-Color-Picker and simply copy two java files directly to your project.
Upvotes: 2
Reputation: 2863
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" />
Upvotes: -1