All Projects → yhongm → ScaleView

yhongm / ScaleView

Licence: Apache-2.0 license
ArcScaleView,ScaleView,刻度尺选择器,包括弧形刻度尺选择器和直尺形刻度尺选择器

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ScaleView

Androidcustomview
一个简单的投票排名对比图
Stars: ✭ 150 (+183.02%)
Mutual labels:  custom-view
Circularprogressbar
CircularProgressbar project let you create circular progressbar in android
Stars: ✭ 188 (+254.72%)
Mutual labels:  custom-view
Colorseekbar
A colorful SeekBar for picking color
Stars: ✭ 249 (+369.81%)
Mutual labels:  custom-view
Circularseekbar
Custom circular SeekBar (Circle, Semi-circle, and Ellipse) for Android
Stars: ✭ 166 (+213.21%)
Mutual labels:  custom-view
Tagimageview
高仿小红书标签添加功能 1.随点击处添加标签 2.计算标签位置 3.可将标签位置还原渲染至不同屏幕尺寸 4.拖拽删除标签
Stars: ✭ 186 (+250.94%)
Mutual labels:  custom-view
Android Youtube Player
YouTube Player library for Android and Chromecast, stable and customizable.
Stars: ✭ 2,510 (+4635.85%)
Mutual labels:  custom-view
Imageframe
高效省内存播放序列帧动画控件
Stars: ✭ 147 (+177.36%)
Mutual labels:  custom-view
RatioLayouts
A collection of ViewGroups which can have a constant width to height ratio.
Stars: ✭ 19 (-64.15%)
Mutual labels:  custom-view
Certificatecamera
证件相机-证件拍照及裁剪
Stars: ✭ 187 (+252.83%)
Mutual labels:  custom-view
Apporder
骚操作之改造TabLayout,修改指示线宽增加切Tab过渡动画
Stars: ✭ 246 (+364.15%)
Mutual labels:  custom-view
Flexiblesearchbar
可以伸缩的搜索栏,模仿华为应用市场
Stars: ✭ 177 (+233.96%)
Mutual labels:  custom-view
Android Passcodeview
A custom view with keyboard and character display to be used for authentication
Stars: ✭ 182 (+243.4%)
Mutual labels:  custom-view
Jpagerslidingtabstrip
🔥A useful tablayout modify from astuetz/PagerSlidingTabStrip
Stars: ✭ 233 (+339.62%)
Mutual labels:  custom-view
Android Animations
DIfferent animation samples on Android
Stars: ✭ 152 (+186.79%)
Mutual labels:  custom-view
Bezierseekbar
Beautiful custom View, SeekBar selector, easy to use, and rich in customization.漂亮的区间选择器,贝塞尔曲线优雅实现
Stars: ✭ 252 (+375.47%)
Mutual labels:  custom-view
Swipelayout
A library what allows you to execute a swipe for the android platform
Stars: ✭ 150 (+183.02%)
Mutual labels:  custom-view
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+4022.64%)
Mutual labels:  custom-view
IconDotTextView
Convenient to add a View which contains icon, text and red dot.
Stars: ✭ 22 (-58.49%)
Mutual labels:  custom-view
PercentBarView
PercentBar
Stars: ✭ 26 (-50.94%)
Mutual labels:  custom-view
Parallaxrecyclerview
Parallax effect on every item of your RecyclerView.
Stars: ✭ 237 (+347.17%)
Mutual labels:  custom-view

ScaleView 选择器:包括弧形刻度尺选择器和直线型刻度尺选择器

预览 弧形刻度尺选择器

预览 直尺刻度尺选择器

使用方法:

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

 	        dependencies {
        	        implementation 'com.github.yhongm:ScaleView:master'
        	}

1,布局文件添加

      <com.yhongm.scale_core.ScaleView
        android:id="@+id/arc_scaleview"
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:layout_centerInParent="true"
        app:arcLineColor="#ff0000"
        app:drawLineSpace="1"
        app:drawTextSpace="5"
        app:everyScaleValue="1"
        app:indicatorColor="#1cffaf"
        app:scaleLineColor="#0000ff"
        app:scaleMin="200"
        app:scaleNum="30"
        app:shape="arc"
        app:scaleSpace="1"
        app:scaleTextColor="#0000ff"
        app:scaleUnit="单位"
        app:selectTextColor="#1fffff" />

2,说明

app:shape="arc" arc为弧形,line为直尺形

app:arcLineColor="#ff0000" 弧线颜色

app:drawLineSpace="1" 刻度线间距

app:drawTextSpace="5" 刻度值间隔

app:everyScaleValue="1" 滑动像素与刻度值的比例

app:indicatorColor="#1cffaf" 中间指示器颜色

app:scaleLineColor="#0000ff" 刻度线颜色

app:scaleMin="200" 选择器最小值

app:scaleNum="30" 刻度数量

app:scaleSpace="1" 刻度间距

app:scaleTextColor="#0000ff" 刻度值颜色

app:scaleUnit="单位" 刻度单位

app:selectTextColor="#111111" 选中值颜色

2,实现setSelectScaleListener监听刻度值变化

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].