我想在listview中的footerview中添加一个旋转的进度条,以显示正在加载更多内容。问题是我有这个奇怪的错误,其中progressview显示但只是冻结,而不是动画。我甚至更奇怪,因为这个列表在选项卡视图中,如果我向前和向后切换选项卡几次开始动画。所以有些东西没有得到刷新或启用或其他东西
这是页脚布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
android:layout_margin="10dp"/>
</LinearLayout>
以下是将其添加到底部的代码
entryList = (ListView)parentView.findViewById(R.id.recent_list_view);
adapter = new EntryListAdapter(getActivity(), new ArrayList<Entry>());
entryList.setAdapter(adapter);
footerLoading = inflater.inflate(R.layout.loading_footer,null);
entryList.addFooterView(footerLoading,null,false);
这就是它的样子。进度条在那里但冻结了。 有什么建议吗?