2016-12-16 59 views
0

奇怪的情况我有的Android indeterminated进度是不是动画

<?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> 

,其结果是enter image description here

的进度是不是动画。我做错了什么?

+0

我将您的ProgressBar元素放到了我的现有线性布局中,而无需执行其他任何操作。你有没有尝试清理和重建项目? – Gary99

回答

1

用于将来的搜索。这很容易,很难找到这个错误。

只要确保您的动画是ON在手机开发者选项。