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 — AndroidScrollRuler/README.md at master · WangcWj/AndroidScrollRuler

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
15 lines (11 loc) · 1.04 KB
/

README.md

Copy path

File metadata and controls

15 lines (11 loc) · 1.04 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

AndroidScrollRuler

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

UI图:

功能:

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

You are visitor 01402792 — 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.