Skip to content

A counter widget that allows the user to long press and auto increment and decrement values

License

Notifications You must be signed in to change notification settings

virtualprodigy/CounterWidget

Repository files navigation

CounterWidget

A counter widget for android. This simple widget provides a numeric counter that allows clicks, for a single increment or decrement of the counter value as well as long pressing the counter to automatically increment or decrement the value every few seconds. To use this widget add the CounterWidget module to your project and include the <com.virtualprodigy.counterwidget.CounterLayout in your xml layout file

#Change Log Version 1.0

-Initial upload

Version 2.0

-Updated the library to version 2.0 -I added in a method to set the value of the counter -I also updated the functionally of the timer task to decrease the period between repeats. This allows the long press action to slowly in/decrement the count at first and then speed up to a more rapid pace

#License Copyright {2015} {Matthew A Butler}

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.

About

A counter widget that allows the user to long press and auto increment and decrement values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages