GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WangcWj/AndroidScrollRuler: 超简单的自定义View实现跟随手指滚动的刻度尺.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
ruler
ruler
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

AndroidScrollRuler

自定义View实现跟随手指滚动的刻度尺,实现了类似SeekBar的滑动选中效果。项目解析
需要的可以直接下载demo运行看效果,不上传Maven仓库是因为这个效果是我想要的,但是并不是你们都想要的,这里只是提供一个基础模版,需要的话还是要使用者自己修改代码。如有碰到问题随时issues联系我~

UI图:

功能:

  • 通过设置最小值跟最大值的范围,以及offset值。View将根据这些数据去计算出需要几个小刻度和几个长刻度,和每个长刻度上面显示的数值。
  • 指针可以随意的定制。
  • 当滑动停止后,刻度尺会根据四舍五入将距离指针最近的长刻度滑动到指针的位置。
  • 支持范围越界回弹。
  • 支持设置默认值。

About

超简单的自定义View实现跟随手指滚动的刻度尺.

Resources

Readme
Activity

Stars

43 stars

Watchers

1 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.