sharedpreferance fragment
占座 public static FragmentRight getInstance(int position){
FragmentRight fragmentRight = new FragmentRight();
Bundle bundle = new Bundle();
bundle.putInt("position", position);
//给Fragment传值
fragmentRight.setArguments(bundle);
return fragmentRight;
FragmentRight fragmentRight = new FragmentRight();
Bundle bundle = new Bundle();
bundle.putInt("position", position);
//给Fragment传值
fragmentRight.setArguments(bundle);
return fragmentRight;
}
sharedpreferance
三种

浙公网安备 33010602011771号