Blankj / Blankj/ProgressRing

设置进度100,进度条走不满

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
161
Forks
24
PR merge metrics
No merged PRs in 30d

Description

![78 w b1rqe9u l e qyoq8](https://user-images.githubusercontent.com/20613737/37506177-9b797a76-2923-11e8-8720-a522d1dd3b27.png)

xml设置 app:pr_start_angle="164"
app:pr_sweep_angle="211"
因为 你的unitAngle 是float类型,在计算时出现了精度损失,
修正:unitAngle 改成Double 类型

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the Java/Android code for unitAngle and the app:pr_start_angle and app:pr_sweep_angle attributes, then reproduce the 100% case using the values shown. Done means the progress ring reaches its full extent without the reported floating-point precision loss; use the project's available checks if present.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.