Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Change README to markdown form #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>Android Holo ColorPicker</h1>
# Android Holo ColorPicker

Marie Schweiz <http://marie-schweiz.de/> made a beautifull new design for the Holo ColorPicker which added a lot of new functionality.

Expand All @@ -12,15 +12,17 @@ Demo can be found on my Google Drive [here](https://docs.google.com/file/d/0Bwcl
![image](https://lh6.googleusercontent.com/-Rn5TDr6QoG4/UQk8OPpsPEI/AAAAAAAAAX0/TKlibuBjupo//framed_HoloColorPicker.png)
![image](https://lh4.googleusercontent.com/-GtJYDCQdnVo/UVW4ML7WIuI/AAAAAAAAAj4/YKHEUnhvLhA//framed_colorpicker.png)

<h3>UDPATE</h3>
### Update
Now bars can change their orientation, Thanks to [tonyr59h](https://github.com/tonyr59h)
also the gradle build version was updated to 0.7.+

![image](https://lh5.googleusercontent.com/-3KSukk_S94Y/UvKiNER-OBI/AAAAAAAAA-k/8SPfOmFhLjE//device-2014-02-05-180704_framed.png)


<h2>Documentation</h2>
## Documentation

To add the ColorPicker to your layout add this to your xml

```xml
<com.larswerkman.holocolorpicker.ColorPicker
android:id="@+id/picker"
Expand All @@ -29,6 +31,7 @@ To add the ColorPicker to your layout add this to your xml
```

To add a Saturation/Value bar to your layout add this to your xml

```xml
<com.larswerkman.holocolorpicker.SVBar
android:id="@+id/svbar"
Expand Down Expand Up @@ -60,7 +63,8 @@ and a Value bar
```

To connect the bars with the colorpicker and to get the selected color.
```java

```:java
ColorPicker picker = (ColorPicker) findViewById(R.id.picker);
SVBar svBar = (SVBar) findViewById(R.id.svbar);
OpacityBar opacityBar = (OpacityBar) findViewById(R.id.opacitybar);
Expand Down Expand Up @@ -90,15 +94,18 @@ valuebar.setOnValueChangeListener(new OnValueChangeListener …)
saturationBar.setOnSaturationChangeListener(new OnSaturationChangeListener …)
```

<H2>Dependency</H2>
## Dependency
Adding it as a dependency to your project.

```
dependencies {
compile 'com.larswerkman:HoloColorPicker:1.5'
}
```

<H2>License</H2>

## License

```
Copyright 2012 Lars Werkman

Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -112,7 +119,7 @@ Adding it as a dependency to your project.
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.
```

<h2>Devoleped By</h2>
## Devoleped By
**Lars Werkman**