我實現了:
((Activity) mContext).setProgressBarIndeterminateVisibility(true);
但是這樣就不行:((Activity) mContext).setSupportProgressBarIndeterminateVisibility(true);
系統提示method is undefined for the type Activity
請幫忙看一下,謝謝。
根據你的要求,需要用activity name代替activity。假設activity名稱是MyAcivity
,試試:
((MyActivity) mContext).setSupportProgressBarIndeterminateVisibility(true);