코드상으로는 문제 없을 것으로 보이는데, 혹시 StudyFragment에서 bundle쪽에 브레이크 포인트를 찍어서 디버깅을 해보셨나요? 프레그먼트를 호출하고 값을 읽어오는 전체코드도 보여주시면 좋을 것 같은데요.
추가로 개별적인 값을 argument로 넘기지 마시고 오브젝트를 하나 넘기세요.
public class StudyArgs implements Serializable {
private final String db;
private final int img;
private final String title;
private final String signer;
public StudyArgs(String db, int img, String title, String signer) {
this.db = db;
this.img = img;
this.title = title;
this.signer = signer;
}
public String getDb() {
return db;
}
public int getImg() {
return img;
}
public String getTitle() {
return title;
}
public String getSigner() {
return signer;
}
}
// Write
public static HomeFragment newInstance(StudyArgs studyArgs) {
HomeFragment fragment = new HomeFragment();
Bundle args = new Bundle();
args.putSerializable(ARG_STUDY, studyArgs);
fragment.setArguments(args);
return fragment;
}
// Read
if (getArguments() != null) {
StudyArgs studyArgs = (StudyArgs) getArguments().getSerializable(ARG_STUDY);
}