我实现了:
((Activity) mContext).setProgressBarIndeterminateVisibility(true);
但是这样就不行:((Activity) mContext).setSupportProgressBarIndeterminateVisibility(true);
系统提示method is undefined for the type Activity
请帮忙看一下,谢谢。
我实现了:
((Activity) mContext).setProgressBarIndeterminateVisibility(true);
但是这样就不行:((Activity) mContext).setSupportProgressBarIndeterminateVisibility(true);
系统提示method is undefined for the type Activity
请帮忙看一下,谢谢。
根据你的要求,需要用activity name代替activity。假设activity名称是MyAcivity
,试试:
((MyActivity) mContext).setSupportProgressBarIndeterminateVisibility(true);