Android ProgressBar在GoogleMap.InfoWindowAdapter中未设置动画

Android ProgressBar在GoogleMap.InfoWindowAdapter中未设置动画,android,view,progress-bar,google-maps-android-api-2,Android,View,Progress Bar,Google Maps Android Api 2,我在活动布局和InfoWindowAdapter中使用相同的组件ProgressBar 我的进度条: <ProgressBar android:id="@+id/stoMapInfo_progressBar" style="?android:attr/progressBarStyleLarge" android:layout_width="wrap_content" android:layout_height="wrap_content"

我在活动布局和InfoWindowAdapter中使用相同的组件ProgressBar

我的进度条:

<ProgressBar
     android:id="@+id/stoMapInfo_progressBar"
     style="?android:attr/progressBarStyleLarge"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_gravity="center"
     android:indeterminate="true"

     />
我知道,InfoWindow有任何限制(onClick只适用于所有窗口),可能是非动画的ProgressBar—一个来自限制。 我能修一下吗

   map.setInfoWindowAdapter(new InfoWindowAdapter() {

        @Override
        public View getInfoWindow(Marker marker) {
            return null;
        }

        @Override
        public View getInfoContents(Marker marker) {
            StoItem item = StoMarkersCollection.getInstance().containsMarker(marker);

            if(item!=null){

                return item.getInfoContent(getActivity().getLayoutInflater().inflate(R.layout.sto_map_info, null),marker);
            } else {
                return null;
            }

        }
    });