2016-12-16 2 views
0

die seltsame Situation Animieren habe ichAndroid indeterminated ProgressBar nicht

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:id="@+id/activity_main" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    > 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="Hello World!"/> 

    <ProgressBar 
     android:id="@+id/my_progressBar" 
     style="@style/Widget.AppCompat.ProgressBar.Horizontal" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:indeterminate="true"/> 
</LinearLayout> 

Und das Ergebnis ist enter image description here

Die ProgressBar Animieren nicht. Ich mache etwas falsch?

+0

Ich habe Ihr ProgressBar-Element in ein bestehendes lineares Layout von mir & animiert, ohne etwas anderes tun zu müssen. Haben Sie versucht, das Projekt zu säubern und neu aufzubauen? – Gary99

Antwort

1

Für zukünftige Suchen. Es war ziemlich einfach und ziemlich schwer, den Fehler zu finden.

Nur stellen Sie sicher, dass Ihre Animationen ON in Telefon Entwickleroptionen ist.

Verwandte Themen