번들을 만든 다음 프래그먼트 클래스를 new로 생성하고, 그 프래그먼트 객체에
번들의 내용을 아규먼트로 준 뒤, FragmentTransaction을 이용하여 현재 뷰에 객체를 덮어씌웠는데..
마지막으로 생성된 프래그먼트만 적용되고, 나머지 프래그먼트는 적용이 안되네요..
JSONObject equipData = data.get(flipper.getDisplayedChild());
if (jsonParser.getIV(equipData).contains("text")) {
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
TextTemplate textTemplate = new TextTemplate();
FragmentTransaction transaction = getFragmentManager().beginTransaction();
Bundle args = new Bundle();
args.putString("pls_content_txt_top", jsonParser.getTextTop(equipData));
args.putString("pls_content_txt_bottom", jsonParser.getTextBottom(equipData));
args.putString("pls_content_txt_location", jsonParser.getTextLocation(equipData));
args.putString("pls_content_txt_time", jsonParser.getTextTime(equipData));
args.putInt("pls_content_txt_position", jsonParser.getTextPosition(equipData));
args.putInt("pls_content_txt_template", jsonParser.getTextTemplate(equipData));
args.putInt("pls_play_position", jsonParser.getPlsPosition(equipData));
textTemplate.setArguments(args);
transaction.replace(flipper.getCurrentView().findViewById(R.id.text_template_container).getId(), textTemplate).commit();
View v = inflater.inflate(R.layout.text_template_container, null);
}
대충 소스코드의 일부분이 이렇게 되는데요, 어떤 것이 문제일까요?