{"id":13848119,"url":"https://github.com/PhilJay/ValueBar","last_synced_at":"2025-07-12T11:33:30.158Z","repository":{"id":22269208,"uuid":"25603394","full_name":"PhilJay/ValueBar","owner":"PhilJay","description":"A beautiful Android custom View that works similar to a range or seekbar. With animations.","archived":false,"fork":false,"pushed_at":"2015-04-03T13:14:47.000Z","size":2588,"stargazers_count":148,"open_issues_count":3,"forks_count":38,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-05T19:35:25.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhilJay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-22T20:43:20.000Z","updated_at":"2023-10-28T02:54:27.000Z","dependencies_parsed_at":"2022-08-09T09:15:23.536Z","dependency_job_id":null,"html_url":"https://github.com/PhilJay/ValueBar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilJay%2FValueBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilJay%2FValueBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilJay%2FValueBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilJay%2FValueBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhilJay","download_url":"https://codeload.github.com/PhilJay/ValueBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225820303,"owners_count":17529138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T19:00:41.994Z","updated_at":"2024-11-21T23:31:00.008Z","avatar_url":"https://github.com/PhilJay.png","language":"Java","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=EGBENAC5XBCKS"],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"ValueBar\n========\n\nA beautiful Android custom View that works similar to a range or seekbar. Selection by gesture. With animations. **Supporting API level 11+.**\n\n![alt tag](https://raw.github.com/PhilJay/ValueBar/master/screenshots/adgraphic.jpg)\n\n\nDemo\n=======\nFor a short demonstration, please download the [**demo application**](https://play.google.com/store/apps/details?id=com.philjay.valuebarexample) from the Google PlayStore. The corresponding code for the demo application can be found in the `ValueBarExample` folder.\n\nUsage\n========\n\nFor using `ValueBar`, there are various possibilities: \n\n**1. Gradle dependency**\n\n - Add the following to your `build.gradle`:\n ```gradle\nrepositories {\n\t    maven { url \"https://jitpack.io\" }\n}\n\ndependencies {\n\t    compile 'com.github.PhilJay:ValueBar:v1.0.2'\n}\n```\n\n**2. Maven**\n- Add the following to your `pom.xml`:\n ```xml\n\u003crepository\u003e\n       \t\u003cid\u003ejitpack.io\u003c/id\u003e\n\t    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\u003c/repository\u003e\n\n\u003cdependency\u003e\n\t    \u003cgroupId\u003ecom.github.PhilJay\u003c/groupId\u003e\n\t    \u003cartifactId\u003eValueBar\u003c/artifactId\u003e\n\t    \u003cversion\u003ev1.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**3. jar file**\n- download the **latest .jar file** from the [**release-section**](https://github.com/PhilJay/ValueBar/releases) and copy it into the `libs` folder of your Android application project.\n\n**4. clone repo**\n- clone this repository and add the library folder to your Android application project\n\nCreate a `ValueBar` in .xml:\n\n```xml\n\u003ccom.philjay.valuebar.ValueBar\n        android:id=\"@+id/valueBar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"60dp\"\n        android:layout_margin=\"5dp\" /\u003e\n\n```\n\nor in code, and then add it to a layout:\n\n```java\n ValueBar bar = new ValueBar(Context);\n```\n\nApply styling, and display values:\n\n```java\n bar.setMinMax(0, 1000);\n bar.setInterval(1f); // interval in which can be selected\n bar.setDrawBorder(false);\n bar.setValueTextSize(14f);\n bar.setMinMaxTextSize(14f);\n bar.setValueTextTypeface(...);\n bar.setMinMaxTextTypeface(...);\n bar.setOverlayColor(...);\n \n // create your custom color formatter by using the BarColorFormatter interface\n bar.setColorFormatter(new RedToGreenFormatter());\n \n // add your custom text formatter by using the ValueTextFormatter interface\n bar.setValueTextFormatter(...);\n            \n bar.setValue(800f); // display a value\n \n // or animate from a specific value to a specific value\n bar.animate(from, to, animationDuration);\n            \n bar.setValueBarSelectionListener(...); // add a listener for callbacks when touching\n\n```\n\nDonations\n======\n\nIf you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, **feel free to donate**. Your donation is highly appreciated.\n\nPayPal\n\n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=EGBENAC5XBCKS)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPhilJay%2FValueBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPhilJay%2FValueBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPhilJay%2FValueBar/lists"}