Devlight / Devlight/ArcProgressStackView

Possible bug with app:apsv_model_offset="10dp"

未关闭
#18 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
1.3k
派生
203
PR 合并指标
30 天内没有已合并 PR

描述

When set app:apsv_model_offset="10dp" the circles get cut by the edges of the view, the solution is in the line 827 of the ArcProgressStackView.java

Change
final float modelOffset = (mProgressModelSize * i) +
(paintOffset + shadowOffset) - (mProgressModelOffset * i);

With
final float modelOffset = (mProgressModelSize * i) +
(paintOffset + shadowOffset) + (mProgressModelOffset * i);

if you put + (mProgressModelOffset * i); works perfectly

Hope this help
Best Regards

贡献指南

这个仓库没有索引到贡献指南

调研方向

Open ArcProgressStackView.java and inspect line 827, where modelOffset is calculated. Reproduce the app:apsv_model_offset="10dp" case if possible, then verify that the circles are no longer cut by the view edges and that the offset calculation matches the reported correction.

由索引模型根据 Issue 内容生成。

评估

技术栈
android, java
领域
mobile-dev
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。