public static myFragment NewInstance(Context context)
{
myFragment fragment = new myFragment();
fragment.contextMain = (MainActivity)context;
fragment.contextMain.CurrmyFragment = fragment;
return fragment;
}
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