Android Arsenal – Fortschrittsindikatoren

Mit dem ArcProgressbar-Projekt können Sie auf einfachste Weise einen Arc-Fortschrittsbalken in Android erstellen.

BENUTZEN

Um eine Arc Progressbar zu erstellen, fügen Sie die ArcProgressbar zu Ihrem XML-Layout hinzu und fügen Sie die ArcProgressbar-Bibliothek zu Ihrem Projekt hinzu, oder Sie können sie über Gradle herunterladen:

Gradl

Fügen Sie es Ihrem root build.gradle am Ende des Repositorys hinzu:

allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Sucht hinzufügen


dependencies {
    ...
    implementation 'com.github.Marvel999:Arc-Progressbar-lib:1.0.0'
}

XML

<!-- <a> Arc progressbar xml</a> -->

         <com.marvel999.acr.ArcProgress
             android:id="@+id/arc_img"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             app:ap_background_progressbar_width="20"
             app:ap_foreground_progressbar_width="20"
             app:ap_progress="50"
             app:ap_progress_background_color="#EDEDED"
             app:ap_progress_color="#71CC75"
              />

Sie können die folgenden Eigenschaften in Ihrem XML verwenden, um Ihre ArcProgressbar zu ändern.

##### Eigenschaften:

/ * Arc-Fortschrittsbalken xml * /

  • app: ap_background_progressbar_width (Integer) -> Standard 5
  • app: ap_foreground_progressbar_width (Integer) -> Standard 40
  • app: ap_progress (Integer) -> Standard 0
  • app: ap_progress_background_color (Farbe) -> Standardfarbe # F9F9FA
  • app: ap_progress_color (Farbe) -> Standardfarbe # 71CC75
  • app: ap_progress_roundedCorner (Boolean) -> Standardflase
  • app: ap_progress_isClockwise (Boolean) -> Standardwert wahr
  • app: ap_progress_maxscale (Integer) -> Standard 100

Kotlin

val arc_img:ArcProgress=findViewById(R.id.arc_img)
        arc_img.setColor(R.color.white)
        arc_img.setProgressThickness(50f)
        arc_img.setProgressBackgroundColor(Color.CYAN)
        arc_img.setProgressColor(Color.YELLOW)
        arc_img.setProgress(130f)
        arc_img.setProgress(progress)
        arc_img.setProgressWithAnimation(progress)

Wie kann ich beitragen?

  1. Trennen Sie das Repository
  2. Gewünschte Änderungen vornehmen (hinzufügen / löschen / bearbeiten)
  3. Stellen Sie eine Auszahlungsanfrage

Wann beitragen?

  1. Korrigieren Sie offene Fehler.
  2. Fügen Sie eine neue Nummer hinzu.

LIZENZ

Urheberrecht 2021 Manisch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Danke Ankita