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

有帮助吗?

解决方案 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" />

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top