All Projects → Ifxcyr → FanLayout

Ifxcyr / FanLayout

Licence: Apache-2.0 license
可定制性超强的圆弧滑动组件

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to FanLayout

Rotatable
Helper class to make any view rotatable
Stars: ✭ 295 (+953.57%)
Mutual labels:  rotate, rotation
Rverify.js
✅❎ A lightweight image rotation verification plugin.
Stars: ✭ 33 (+17.86%)
Mutual labels:  rotate, rotation
Jqueryrotate
jQueryRotate - plugin to rotate images by any angle cross-browse with animation support
Stars: ✭ 157 (+460.71%)
Mutual labels:  rotate, rotation
asus-fan
Kernel module to get/set (both) fan speed(s) on ASUS Zenbooks
Stars: ✭ 92 (+228.57%)
Mutual labels:  fan
proxy-rotator
Simple proxy rotation service
Stars: ✭ 28 (+0%)
Mutual labels:  rotation
MD REncoder
Rotary Encoder Library
Stars: ✭ 25 (-10.71%)
Mutual labels:  rotation
rotation master
Provide conversion between the major representations of 3D rotation and visualize the orientation of a rigid body
Stars: ✭ 157 (+460.71%)
Mutual labels:  rotation
yolov5 obb
yolov5 + csl_label.(Oriented Object Detection)(Rotation Detection)(Rotated BBox)基于yolov5的旋转目标检测
Stars: ✭ 1,105 (+3846.43%)
Mutual labels:  rotation
mlfc
MSI Laptop Fan Control
Stars: ✭ 39 (+39.29%)
Mutual labels:  fan
MagicWE2
[MagicWE2] Lag free asynchronous world editor for PMMP with plenty of options
Stars: ✭ 109 (+289.29%)
Mutual labels:  rotate
03-Unstable-Rotation
The code for my Game Physics course: https://www.udemy.com/gamephysics
Stars: ✭ 21 (-25%)
Mutual labels:  rotation
canvas-plus
A universal Node/browser library for manipulating images, built on canvas.
Stars: ✭ 84 (+200%)
Mutual labels:  rotate
fancon
A Linux fan control daemon
Stars: ✭ 45 (+60.71%)
Mutual labels:  fan
rotatewriter
Writter for internal golang log library or for rs/zerolog which has normal smooth nonblocking rotate
Stars: ✭ 16 (-42.86%)
Mutual labels:  rotation
python-rotate-backups
Simple command line interface for backup rotation
Stars: ✭ 136 (+385.71%)
Mutual labels:  rotation
virtualGizmo3D
Virtual GIZMO - 3D object manipulator / orientator, via mouse, with pan and dolly/zoom features
Stars: ✭ 36 (+28.57%)
Mutual labels:  rotation
e2-scripts
Scripts for working with electribe 2.
Stars: ✭ 20 (-28.57%)
Mutual labels:  rotate
SplittableViewKit
A cell of IndexPath(row: 0, section: 0) in UITableView is automatically moved to left view when device rotated.
Stars: ✭ 39 (+39.29%)
Mutual labels:  rotation
Quadcopter SimCon
Quadcopter Simulation and Control. Dynamics generated with PyDy.
Stars: ✭ 84 (+200%)
Mutual labels:  rotation
afancontrol
Advanced Fan Control program, which controls PWM fans according to the current temperatures of the system components.
Stars: ✭ 36 (+28.57%)
Mutual labels:  fan

可定制性超强的圆弧滑动组件

博客详情: https://blog.csdn.net/u011387817/article/details/80788704

使用方式:

添加依赖:

implementation 'com.wuyr:fanlayout:1.0.1'

APIs:

Method Description
setAutoSelect(boolean isAutoSelect) 设置滚动完毕是否自动选中最近的Item
setBearingCanRoll(boolean isCanRoll) 设置轴承是否可以跟随Item旋转
BearingTypeTYPE_VIEW时有效
setBearingColor(int color) 设置轴承颜色
BearingTypeTYPE_COLOR时有效
setBearingLayoutId(int layoutId) 指定轴承的布局id
BearingTypeTYPE_VIEW时需设置
setBearingOffset(int offset) 设置轴承的偏移量
setBearingOnBottom(boolean isOnBottom) 设置轴承是否在底部
setBearingType(int type) 设置轴承类型
setFixingAnimationDuration(int duration) 设置惯性滚动后,自动选中的动画时长
setGravity(int gravity) 设置对齐方式
setItemAddDirection(int direction) 设置Item的添加方向 默认: 顺时针添加
setItemAngleOffset(float angle) 指定Item的偏移角度
LayoutModeMODE_FIXED时有效
setItemDirectionFixed(boolean isFixed) 设置item是否保持垂直
setItemLayoutMode(int layoutMode) item的布局方式: 默认: MODE_AVERAGE(平均)
如设置为MODE_FIXED需指定偏移的角度:
setItemAngleOffset(float angle)
setItemOffset(int itemOffset) 设置Item的偏移量
setRadius(int radius) 指定轴承半径
BearingTypeTYPE_COLOR时有效
setScrollAvailabilityRatio(float ratio) 惯性滚动利用率
数值越大,惯性滚动的动画时间越长
setSelection(int index, boolean isSmooth) 选中指定的Item
setOnItemRotateListener(Listener listener) 设置旋转事件监听
setOnItemSelectedListener(Listener listener) 设置自动选中监听
setOnBearingClickListener(Listener listener) 设置轴承点击监听
setOnItemClickListener(Listener listener) 设置items点击监听
setOnItemLongClickListener(Listener listener) 设置items长按监听

Attributes:

Name Format Description
auto_select boolean (默认: false) 滚动完毕是否自动选中最近的Item
bearing_can_roll boolean (默认: false) 轴承是否跟随Item转动
bearing_color color (默认: #000000) 轴承颜色
bearing_typecolor时才有效
bearing_gravity enum (默认: left)
top(顶部)
bottom(底部)
left(左边)
left_top(左上)
left_bottom(左下)
right(右边)
right_top(右上)
right_bottom(右下)
对齐方式
bearing_layout reference 自定义的轴承布局
bearing_typeview时才有效
bearing_offset dimension 轴承偏移量
bearing_on_bottom boolean (默认: false) 轴承是否在底部
bearing_radius dimension 轴承半径
bearing_type enum (默认: color)
view
color
轴承类型
设置为view时需指定bearing_layout
item_add_direction enum (默认: clockwise)
clockwise(顺时针)
counterclockwise(逆时针)
interlaced(交叉)
item的添加方向
item_angle_offset float 固定的偏移角度
item_layout_modefixed时有效
item_direction_fixed boolean (默认: false) Item是否保持垂直
item_layout_mode enum (默认: average)
average(平均分配)
fixed(指定角度)
item的布局方式
设置为fixed时需指定item_angle_offset
item_offset dimension item偏移量

Demo下载: app-debug.apk

Demo源码地址: https://github.com/wuyr/FanLayout

几行代码实现Android弧形滑动 (圆弧滑动辅助) https://github.com/Ifxcyr/ArcSlidingHelper

效果图 (表情包来源:百度贴吧):

preview preview preview preview preview preview preview preview preview preview

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].