Skip to content

Commit f0b0bb1

Browse files
committed
Merge pull request #32 from JudeRosario/master
Added setup instructions to project
2 parents a67485a + 2bdc1d1 commit f0b0bb1

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,39 @@ Requirements
2121

2222
Tested with APIv7, but maybe will work with early versions
2323

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``
56+
2457
Usage
2558
=====
2659

0 commit comments

Comments
 (0)