我没有遵循getPendingView方法。不是应该使用pending.xml布局而不是行布局吗?
row=getLayoutInflater().inflate(R.layout.row,@
@重写受保护的视图getPendingView(ViewGroup父){ View getPendingView 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);
}发布于 2012-04-18 18:21:36
不应该使用pending.xml布局而不是行布局吗?
不是的。pending.xml被其他演示活动使用。
文本请wait...doesnt出现
它不应该出现。因此,它不会出现。您所引用的演示使用一个旋转的ImageView来指示某些东西正在挂起。
https://stackoverflow.com/questions/10213838
复制相似问题