Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
com.github.omadahealth:library
Advanced tools
A circular view pager, similar to the pager in GoogleFit. A view pager wrapped inside of a circular progress bar
A Lollipop material design styled CircularBarPager library (API 10+).
To include in your project, add this to your build.gradle file:
//CircularBarPager
compile 'com.github.orangegangsters:library:1.3.4@aar'
//CirclePageIndicator
compile 'com.viewpagerindicator:library:2.4.1@aar'
//Animations and progress value easing
compile 'com.daimajia.easing:library:2.1@aar'
Starting from version 1.3.10, we are moving to a new package name (we skipped from 1.3.4 to 1.3.10):
//CircularBarPager
compile 'com.github.omadahealth:library:1.3.11@aar'
//CirclePageIndicator
compile 'com.viewpagerindicator:library:2.4.1@aar'
//Animations and progress value easing
compile 'com.daimajia.easing:library:2.1@aar'
========
Developers: Olivier Goutay and Stoyan Dimitrov
Designers: Daniel Waldron
Look at the example app for a live example on how to use the library.
In order to use the CirclePageIndicator by Square, you need to add a repo to your main build.gradle file:
allprojects {
repositories {
maven { url 'http://dl.bintray.com/populov/maven/' }
jcenter()
}
}
<com.github.omadahealth.circularbarpager.library.CircularBarPager
android:id="@+id/circularBarPager"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:paddingLeft="30dp"
android:paddingRight="30dp"
android:layout_centerInParent="true"
style="@style/CircularBarPagerStyle"/>
<style name="CircularBarPagerStyle">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">match_parent</item>
<item name="progress_arc_max">100</item>
<item name="arc_progress">0</item>
<item name="progress_arc_clockwise_outline_width">0.75dp</item>
<item name="progress_arc_counter_clockwise_outline_width">0.75dp</item>
<item name="progress_arc_clockwise_width">8dp</item>
<item name="progress_arc_counter_clockwise_width">8dp</item>
<item name="progress_start_line_enabled">true</item>
<item name="progress_pager_on_click_enabled">true</item>
<item name="progress_pager_fill_circle_color">#00000000</item>
</style>
========
You can change several attributes in the XML file:
You can access every components programmatically by getting the CircularBarPager object:
CircularBarPager mCircularBarPager = (CircularBarPager) findViewById(R.id.circularBarPager);
CircularBar circularBar = mCircularBarPager.getCircularBar();
ViewPager viewPager = mCircularBarPager.getViewPager();
CirclePageIndicator circlePageIndicator = mCircularBarPager.getCirclePageIndicator();
========
========
The MIT License (MIT)
Copyright (c) 2017 Omada Health
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
FAQs
A circular view pager, similar to the pager in GoogleFit. A view pager wrapped inside of a circular progress bar
We found that com.github.omadahealth:library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.