0

我没有遵循 getPendingView 方法。它不应该使用pending.xml 布局而不是第一行吗???

@Override protected View getPendingView(ViewGroup parent) { View row=getLayoutInflater().inflate(R. layout .row, null);

  View child=row.findViewById(android.R.id.text1);

  child.setVisibility(View.GONE);

  child=row.findViewById(R.id.throbber);
  child.setVisibility(View.VISIBLE);
  child.startAnimation(rotate);

  return(row);
}
4

1 回答 1

1

它不应该使用pending.xml 布局而不是第一行吗?

编号pending.xml被其他演示活动使用。

文本请稍候...没有出现

它不应该出现。因此,它不会出现。您引用的演示使用旋转ImageView来指示某些事情正在等待处理。

于 2012-04-18T18:21:36.060 回答