Profile image


두둥 | 조회 수 4 | 2021.02.07. 10:26
Category Free

Custom view for user input that models horizontal wheel controller.



Add repository to your root build.gradle:

allprojects {
 repositories {
    maven { url "" }

Add the dependency to your module build.gradle:

compile 'com.github.shchurov:horizontalwheelview:0.9.5'


Method Description
void setListener(Listener listener) Add a listener that will be invoked when the user interacts with the view
void setRadiansAngle(double radians) Set the rotation angle in radians
void setDegreesAngle(double degrees) Set the rotation angle in degrees
void setCompleteTurnFraction(double fraction) Set the rotation angle in fraction, where 0f = 0°, 1.0f = 360°
double getRadiansAngle() Get the rotation angle in radians (-2π, 2π)
double getDegreesAngle() Get the rotation angle in degrees (-360°, 360°)
double getCompleteTurnFraction() Get the roatation angle in fraction (0f, 1.0f), where 0f = 0°, 1.0f = 360°
void setOnlyPositiveValues(boolean onlyPositiveValues) When true, all rotation getters return only positive values, in xml: app:onlyPositiveValues, default: false
void setMarksCount(int marksCount) Set the total number of marks on the wheel, in xml: app:marksCount
void setNormalColor(int color) Set the color of non-active marks, in xml: app:normalColor, default: ffffff
void setActiveColor(int color) Set the color of active marks, in xml: app:activeColor, default: 54acf0
void setShowActiveRange(boolean show) When true, all marks that satisfy the condition |markAngle| <= |rotationAngle| will be highlighted with the active color, in xml: app:showActiveRange, default: true
void setEndLock(boolean lock) When true, it's not allowed to rotate the wheel past the edge values, default: false
void setSnapToMarks(boolean snapToMarks) When true, user's rotations will snap to the marks, in xml: app:snapToMarks, default: false


Copyright 2016 Mykhailo Shchurov

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
  • |
  1. 183c781af58c62005c346c687fce4b5d.png (File Size:1.6KB/Download:4)
facebook twitter google plus pinterest kakao story band
사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

0개 첨부 됨 ( / )
번호 제목 글쓴이 날짜 조회 수
5 Line Graph file 아빠뎁 21.02.07. 7
4 3d View file 아빠뎁 21.02.07. 6
» HorizontalWheelView file 두둥 21.02.07. 4
2 Wheel Spinner 두둥 21.02.07. 3
1 Unicorn File Picker file 두둥 21.02.07. 5