Ich versuche, von unbestimmten zu bestimmten horizontalen Fortschrittsbalken zu ändern, aber Determinte Fortschrittsbalken funktioniert nicht, wo unbestimmt funktioniert so gut.Android Horizontal bestimmte ProgressBar läuft nicht
Bestimmt erscheint eine aber keine Bewegung. bitte hilf mir.
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/check"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ProgressBar
android:id="@+id/my_progressBar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:indeterminate="false"
android:max="100"
android:progress="10"/>
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
und ich fügte folgend in MainActivity.java:
ProgressBar progressBar = (ProgressBar) findViewById(R.id.my_progressBar);
progressBar.setProgress(20);
Der Fortschritt beginnt bei 20 und erhöht sich nicht? – Diekrul
@Diekrul ja es bleibt dort und erhöht sich nicht – user3518835