Marvel999 / Marvel999/Arc-Progressbar-lib

how to set max progress value?????

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
52
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I'm trying this library, and the weird thing is that I can't find a way to set the maximum value to the object.
"ap_progress_maxscale" method doenst works.

attach an example:
max:100
progress:99

I expect the bar to be almost full, but instead:
![immagine](https://user-images.githubusercontent.com/24671034/151838189-4f643105-c265-4716-ad21-2058a37349d8.png)

xml code

progress_bar.arc_progress.ArcProgress
android:id="@+id/progressoArco"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:ap_progress="99"
app:ap_progress_maxscale="100"
app:ap_progress_background_color="#EDEDED"
app:ap_background_progressbar_width="25"
app:ap_foreground_progressbar_width="25"
app:ap_progress_color="#71CC75"
app:ap_progress_roundedCorner="true"
android:layout_marginBottom="@dimen/_10sdp"
>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ArcProgress custom view and the XML attributes shown in the issue, especially ap_progress_maxscale, and reproduce the case with max 100 and progress 99. Done means the resulting arc is nearly full and the max-value attribute works as expected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.