我有一个可用的片段类,其中需要调用片段x并向下调用片段y,检查多个解决方案dint工作请提供代码。
public class Image_1 extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle args) {
final View view = inflater.inflate(R.layout.image1_activity, container, false);
/////fling up
///--->fragment x
/////fling down
///--->fragment y
return view;
}
}