Skip to content

Commit

Permalink
"Auto"
Browse files Browse the repository at this point in the history
  • Loading branch information
Beppi Menozzi authored and Beppi Menozzi committed Jul 9, 2017
1 parent 4f12ee7 commit 6c7a01a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -37,7 +37,7 @@ In your Application's or Module's build.gradle file:

dependencies {
...
compile 'com.github.BeppiMenozzi:Knob:1.7.0'
compile 'com.github.BeppiMenozzi:Knob:1.8.0'
...
}

Expand Down Expand Up @@ -92,6 +92,7 @@ Here is the list of the xml attributes that can be used to customize the View. A
<tr><th colspan="2">General</th></tr>
<tr><td><b>kNumberOfStates</b></td><td>Number of possible states. States are numbered from 0 to n-1. This number can be changed runtime, and the indicator will adjust its position accordingly.</td></tr>
<tr><td><b>kDefaultState</b></td><td>The starting state of the knob.</td></tr>
<tr><td><b>kClickBehaviour</b></td><td>What is expected when the knob is clicked. Next value, previous value, reset to default value, or let the user select with a popup menu. Default is next.</td></tr>
<tr><td><b>kAnimation</b></td><td>Enable / disable indicator's animation.</td></tr>
<tr><td><b>kAnimationSpeed</b></td><td>Parameter "speed" applied to the spring physical model for the indicator's animation.</td></tr>
<tr><td><b>kAnimationBounciness</b></td><td>Parameter "bounciness" applied to the spring physical model for the indicator's animation.</td></tr>
Expand Down Expand Up @@ -143,6 +144,10 @@ Here is the list of the xml attributes that can be used to customize the View. A
You don't have to add any dependency.
Internally, this library uses my other <a href="https://github.com/BeppiMenozzi/BalloonPopup">Balloon Popup library</a> to display... guess... balloon popups.

### New in 1.8.0
* Fixed: default swipe direction (thanks for pull request)
* Added different onClick behaviours, included the somewhere asked popup menu

### New in 1.7.0
* Added public constants for swipe direction

Expand Down

0 comments on commit 6c7a01a

Please sign in to comment.