Question

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

Was it helpful?

Solution 2

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" />

OTHER TIPS

You can use this color picker: github.com/chiralcode/Android-Color-Picker and simply copy two java files directly to your project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top