ArcSeekBar


Source link: https://github.com/MarcinMoskala/ArcSeekBar

ArcSeekBar

Library was created to make good looking curved SeekBars.

To stay up-to-date with news about library

Usage

Library can be used to make good-looking curved SeekBar:

Here are some usage examples:

<com.marcinmoskala.arcseekbar.ArcSeekBar
  android:layout_width="300dp"
  android:layout_height="150dp" />

<com.marcinmoskala.arcseekbar.ArcSeekBar
  app:thumb="@drawable/thumb2"
  app:progressColor="@color/colorAccent"
  app:progressBackgroundColor="@color/colorPrimary"
  android:layout_width="200dp"
  android:layout_height="100dp" />

Here is progress drawable thumb2 definition.

<com.marcinmoskala.arcseekbar.ArcSeekBar
  android:id="@+id/seekArc"
  android:layout_width="match_parent"
  android:layout_height="100dp"
  app:progressBackgroundColor="@color/sliderBack"
  app:progressBackgroundWidth="20dp"
  app:progress="100"
  app:progressWidth="20dp"
  app:roundEdges="true" />

To make gradient, you need to define it in code:

int[] intArray = getResources().getIntArray(R.array.progressGradientColors);
 arcSeekBar.setProgressGradient(intArray);

Here you can find array definition.

Customization

ArcSeekBar properties are:

  • thumb - reference to thumb drawable.
  • progress - initial value of progress (0 by default).
  • maxProgress max vale of progress (100 by default).
  • progressColor color of visible progress bar.
  • progressWidth width of visible progress bar.
  • progressBackgroundColor color of bar behind progress.
  • progressBackgroundWidth width of bar behind progress.
  • roundEdges if edges should be rounded or not ( true by default).
  • enabled is progress enabled or not ( true by default). For disabled there is no thumb displayed.

Each property can be changes pragmatically, and additionally gradient progress or background can be set by:

  • setProgressGradient e.g. arcSeekBar.setProgressGradient(Color.GREEN, Color.BLUE, Color.YELLOW);
  • setProgressBackgroundGradient e.g. arcSeekBar.setProgressBackgroundGradient(Color.GREEN, Color.BLUE, Color.YELLOW);

Installation

Just add following dependency in your module build.gradle:

dependencies {

  compile 'com.github.marcinmoskala:ArcSeekBar:0.31' 
}

Also add on your module build.gradle (unless you already have it):

repositories {

  maven {
 url 'https://jitpack.io' 
}
 
}

Other libraries

If you like it, remember to leave the star and check out my other libraries:

  • VideoPlayView - Custom Android view with video player, loader and placeholder image
  • ActivityStarter - Simple Android Library, that provides easy way to start and save state of Activities, Fragments, Services and Receivers with arguments.
  • PreferenceHolder - Library for simple SharedPreference management in Kotlin
  • KotlinAndroidViewBindings - Bindings for properties with simple Kotlin types (Boolean, String) to layout traits (visibility, text).

License

Copyright 2017 Marcin Moska?a  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. 

Resources

RxCupboard brings the excellent Android Cupboard library into the world of RxJava. Using a small set of convenience Observables, you can fluently store and retrieve streams of POJOs from your database.

An efficient sparse bit set implementation for Java.

This library provides you a Spinner with the Material style. You can use it like any "normal" Spinner and add floating label text, hint and error messages.

SpinningTabStrip & SpinningViewPager are android extensions allowing infinite scrolling.

This library lets you apply custom fonts to your android projects. It's very simple to use: just change the widget declaration on your layout, the library will find the font on your assets directory.

Customisations for the native Android SearchView.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes