Android implementation of customizable circle control view

Overview

TheMindStudios

CircleControlView

Ready for usage CircleControlView based on gesture detection

alt tag alt tag

Features

  • get value based on min, max values and rotation angle
  • get count of full circles (2*PI)
  • get rotation direction (clockwise/counter clockwise)

Usage

  1. Import circlecontrolview module to your project

alt tag

  1. Add following line to your settings.gradle file

      include ':YOUR_APP_PROJECT_NAME', ':circlecontrolview'
  2. Add following line to your build.gradle file

      dependencies {
      ...
      compile project(':circlecontrolview')
      }
  3. Initialize CircleControlView from code

      final CircleControlView circleControlView = (CircleControlView) findViewById(R.id.radio_cv_fm);
      circleControlView.setOnValueChangedCallback(onValueChangedCallback);
    
      final Drawable pressedBackground = ContextCompat.getDrawable(this, R.drawable.bg_btn_radio_pressed);
      circleControlView.setPressedBackground(pressedBackground);
    
      final Properties properties = CircleControlView.newPropertiesBuilder()
              .minValue(700)
              .value(1000)
              .maxValue(1200)
              .numberOfCircles(2)
              .build();
    
      circleControlView.setProperties(properties);
          
          ...
          
      private CircleControlView.OnValueChangedCallback onValueChangedCallback = new        CircleControlView.OnValueChangedCallback() {
          @Override
          public void onValueChanged(int value) {
              ...
              Process your value here
          }
      };
  4. Initialize CircleControlView from XML

      <com.themindstudios.circlecontrolview.widget.CircleControlView
          android:id="@+id/circleview"
          android:layout_width="200dp"
          android:layout_height="200dp"
          android:background="@drawable/PUT_YOUR_BG_RESOURCE_ID_HERE"
          circle:minValue="0"
          circle:currentValue="333"
          circle:maxValue="360"/>
    final CircleControlView circleView = (CircleControlView) findViewById(R.id.circleview);
    circleView.setOnValueChangedCallback(onValueChangedCallback);
    
    ...
    
    private CircleControlView.OnValueChangedCallback onValueChangedCallback = new CircleControlView.OnValueChangedCallback() {
    
          @Override
          public void onValueChanged(int value) {
              ...
              Process your value here
          }
      };

Examples

You can find examples in APP module

License

CorcleControlView is available under the MIT license. See the LICENSE file for more info.
You might also like...
PowerSpinner - 🌀 A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android.
PowerSpinner - 🌀 A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android.

PowerSpinner - 🌀 A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android.

Customizable bouncing dots for smooth loading effect. Mostly used in chat bubbles to indicate the other person is typing.
Customizable bouncing dots for smooth loading effect. Mostly used in chat bubbles to indicate the other person is typing.

LoadingDots for Android Customizable bouncing dots view for smooth loading effect. Mostly used in chat bubbles to indicate the other person is typing.

Completely customizable progress based loaders drawn using custom CGPaths written in Swift
Completely customizable progress based loaders drawn using custom CGPaths written in Swift

FillableLoaders Completely customizable progress based loaders drawn using custom CGPaths written in Swift Waves Plain Spike Rounded Demo: Changelog:

A customizable indeterminate progress bar
A customizable indeterminate progress bar

DilatingDotsProgressBar Installation compile 'com.github.justzak:dilatingdotsprogressbar:1.0.1' Usage com.zl.reik.dilatingdotsprogressbar.DilatingDo

Completely customizable progress based loaders drawn using custom CGPaths written in Swift
Completely customizable progress based loaders drawn using custom CGPaths written in Swift

FillableLoaders Completely customizable progress based loaders drawn using custom CGPaths written in Swift Waves Plain Spike Rounded Demo: Changelog:

Beautiful progress bar with segments. Highly customizable. Fully written with Jetpack Compose
Beautiful progress bar with segments. Highly customizable. Fully written with Jetpack Compose

🚥 SegmentedProgressBar 🚥 Beautiful progress bar split into several segments. Highly customizable. Fully written with Jetpack Compose. Why this libra

Android loading view
Android loading view

Loading Loading is a poject with kinds of Android loading view. Yan can see the wiki for more detail. RotateLoading BookLoading NewtonCradleLoading Us

Android fillable progress view working with SVG paths. This is a nice option too if you want to create an interesting branding logo for your app. Based on the iOS project: https://github.com/poolqf/FillableLoaders
Android fillable progress view working with SVG paths. This is a nice option too if you want to create an interesting branding logo for your app. Based on the iOS project: https://github.com/poolqf/FillableLoaders

Android FillableLoaders Android Open Source library providing an interesting fillable progress view working with SVG paths. This is a nice option too

Some beautiful android loading drawable, can be combined with any view as the LoadingView or the ProgressBar. Besides, some Drawable can customize the loading progress too.
Some beautiful android loading drawable, can be combined with any view as the LoadingView or the ProgressBar. Besides, some Drawable can customize the loading progress too.

LoadingDrawable: Android cool animation collection 前言 CircleRotate源码解析 Fish源码解析 LoadingDrawable is some android animations implement of drawable: a li

Owner
Mind Studios
We are a team of Mobile and Web Architects that creates products which turn into brands.
Mind Studios
Material progress circle around any FloatingActionButton. 100% Guidelines.

FABProgressCircle Android library to provide a material progress circle around your FloatingActionButton. This component is compatible with any existe

Jorge Castillo 1.2k Nov 28, 2022
a circle progress bar with effect

RingProgress a circle progress bar with effect #Preview ##Usage xml <com.ldoublem.ringPregressLibrary.RingProgress android:id="@+id/ring_prog

ldoublem 629 Nov 14, 2022
Circular Slider UI Control for Android

Circular Slider What is this? Circular Slider is a custom-built Android View used for choosing numbers. It works similarly to the regular slider contr

Milos Marinkovic 309 Dec 7, 2022
Present your progress bars in arc mode with information and total control.

ArcProgressStackView Present your progress bars in arc mode with information and total control. You can check the sample app here. Warn This library i

Basil Miller 249 Sep 10, 2022
Present your progress bars in arc mode with information and total control.

ArcProgressStackView Present your progress bars in arc mode with information and total control. You can check the sample app here. Warn This library i

Devlight 1.3k Nov 29, 2022
Present your progress bars in arc mode with information and total control.

ArcProgressStackView Present your progress bars in arc mode with information and total control. You can check the sample app here. Warn This library i

Devlight 1.3k Nov 29, 2022
Now deprecated. A small Android library allowing you to have a smooth and customizable horizontal indeterminate ProgressBar

Description Small library allowing you to make a smooth indeterminate progress bar. You can either user your progress bars and set this drawable or us

Antoine Merle 4.4k Dec 30, 2022
A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use 🎉

RoundedProgressBar Easy, Beautiful, Customizeable The RoundedProgressBar library gives you a wide range of customizable options for making progress ba

null 541 Jan 1, 2023
Android library for showing progress in a highly customizable pie.

ProgressPieView Android library for showing progress in a highly customizable pie. Choose from the broad spectre of styleable elements: ppvStrokeWidth

Filip Puđak 399 Dec 29, 2022
A simple customizable NumberPicker plugin for Android

NumberPicker A simple customizable NumberPicker for Android. Installation via Gradle: compile 'com.github.travijuu:numberpicker:1.0.7' or Maven: <depe

Erkin Çakar 93 Nov 29, 2022