public static myFragment NewInstance(Context context)
{ myFragment fragment = new myFragment(); fragment.contextMain = (MainActivity)context;fragment.contextMain.CurrmyFragment = fragment;
return fragment; }本文共 257 字,大约阅读时间需要 1 分钟。
public static myFragment NewInstance(Context context)
{ myFragment fragment = new myFragment(); fragment.contextMain = (MainActivity)context;fragment.contextMain.CurrmyFragment = fragment;
return fragment; }转载于:https://www.cnblogs.com/lizia/p/4626740.html