标签:
public static myFragment NewInstance(Context context)
{
myFragment fragment = new myFragment();
fragment.contextMain = (MainActivity)context;
fragment.contextMain.CurrmyFragment = fragment;
return fragment;
}
将父类activity context传递给fragment
标签:
原文地址:http://www.cnblogs.com/lizia/p/4626740.html