You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,39 @@ Requirements
21
21
22
22
Tested with APIv7, but maybe will work with early versions
23
23
24
+
Installation
25
+
===========
26
+
27
+
Android Studio
28
+
--------------
29
+
30
+
1) Paste or clone this library into the ``/libs`` folder, in the root directory of your project. Create a new folder: ``/libs`` if not already present. (This step is not required - only for keeping cleaner project structure)
31
+
2) Edit ``settings.gradle`` by adding the library. You have also define a project directory for the library. Your ``settings.gradle`` should look like below:
32
+
::
33
+
34
+
include ':app', ':ColorPickerPreference'
35
+
project(':ColorPickerPreference').projectDir = new File('libs/ColorPickerPreference')
36
+
37
+
3) In ``app/build.gradle`` add the ColorPickerPreference library as a dependency:
38
+
::
39
+
40
+
dependencies {
41
+
compile fileTree(dir: 'libs', include: ['*.jar'])
42
+
compile 'com.android.support:appcompat-v7:21.0.3'
43
+
compile project(":ColorPickerPreference")
44
+
}
45
+
46
+
47
+
4) Sync project, clean and build. You can use the ``ColorPickerPreference`` library as part of your project now.
48
+
49
+
Eclipse
50
+
-------
51
+
52
+
1) Before you can add a ``ColorPickerPreference`` to your application, you must first add a library reference:
53
+
2) Clone or download a copy of the library
54
+
3) Import the library into Eclipse: File menu -> Import -> Existing Project into Workspace
55
+
4) Open your application's project properties and add a library reference to ``ColorPickerPreference``
0 commit comments