我想从片段中获取 getSerializableExtra?我收到“无法解决方法 getIntent()”的错误。请指教
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_activity_content, container, false);
return view;
ActivityInfo activityInfo =(ActivityInfo)getIntent().getSerializableExtra("name");
}
慕标琳琳
牛魔王的故事
慕森王
相关分类