문제

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