1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00
k-9/plugins/HoloColorPicker
Joe Steele c40dd196a6 Simplify Eclipse setup.
Create .project files for all the Ecplipse projects
so they will all have project names and can
all be brought into Ecplipse together with a single
'File -> Import -> Android ->
Existing Android Code Into Workspace'.

(Not bothering to remove the .project exclusion from
all .gitignore files.  Once the .project files are
checked in, they will no longer be ignored.)

Modify the top .project file so that Eclipse knows
k9mail's dependence on it plugins, and thus will
build everything in the correct order.

With the latest Android SDK Rev. 22, the top .classpath file
needs modification or else K9 will not run (see parent commit 53fcdd1).
But the initial import of k9mail into Eclipse works more cleanly if the
.classpath file doesn't exist on import, in which case Eclipse creates it
automatically.  So rather than modify the .classpath file, remove it
from git and leave it untracked.

(For an existing Eclipse project, this commit will remove the file from
the working directory.  A corrected version can be restored with:
git checkout 53fcdd1 .classpath
git rm --cached .classpath)

Add .classpath to the top .gitignore, now that no
.classpath files are being tracked (with one exception,
see below).

Create a tests/.classpath so that Java can find the k9mail
project in order to build the k9mail-tests project.
2013-05-31 18:00:45 -04:00
..
libs Add (heavily modified) HoloColorPicker 2013-01-17 09:03:11 +01:00
res/values Add (heavily modified) HoloColorPicker 2013-01-17 09:03:11 +01:00
src/com/larswerkman/colorpicker Update HoloColorPicker 2013-01-18 14:15:56 +01:00
.gitignore Add (heavily modified) HoloColorPicker 2013-01-17 09:03:11 +01:00
.project Simplify Eclipse setup. 2013-05-31 18:00:45 -04:00
AndroidManifest.xml Add (heavily modified) HoloColorPicker 2013-01-17 09:03:11 +01:00
LICENSE Add (heavily modified) HoloColorPicker 2013-01-17 09:03:11 +01:00
pom.xml Add pom and IntelliJ configuration for HoloColorPicker 2013-01-17 02:16:24 -08:00
project.properties Add (heavily modified) HoloColorPicker 2013-01-17 09:03:11 +01:00
README.md Add (heavily modified) HoloColorPicker 2013-01-17 09:03:11 +01:00

Android Holo ColorPicker

A Holo themed colorpicker designed by Marie Schweiz and Nick Butcher.

image image

Documentation

Add this to your xml
<com.larswerkman.colorpicker.ColorPicker
    android:id="@+id/picker"
            android:layout_width="285dp"
    android:layout_height="290dp"/>

To change the thickness of the wheel and the pointer you can add this.

app:wheel_size="2"
app:pointer_size="4"

To get the color of the colorpicker

ColorPicker picker = (ColorPicker) findViewById(R.id.picker);

picker.getColor();

License

 Copyright 2012 Lars Werkman
 
 Licensed under the Apache License, Version 2.0 (the 	"License");
 you may not use this file except in compliance with 	the License.
 You may obtain a copy of the License at
 
     http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in 	writing, software
 distributed under the License is distributed on an 	"AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 	either express or implied.
 See the License for the specific language governing 	permissions and
 limitations under the License.

Devoleped By

**Lars Werkman**