Merhabalar,
Fragment arasındaki geçişlerinizde özel bir bug oluşmaktadır. Bu bug’ı stabil hale getirmeniz için kontrol ederek parent içini boşaltmanız gerekiyor. Mevcut bir üstteki fragment child parent olduğunu ifade ediyor.
Hi all,
In the transition between fragment it consists of a specific bug. Today you need to clear this for you by checking for the parent to stabilize. He stated that the existing upper fragments parent the child.
Bug fixed : java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child’s parent first.
public View mview;
public Edittext userEtxt;
// in onCreateView
if (mview == null) {
mview = inflater.inflate(R.layout.fragment1_layout, container, false);
// if you have
userEtxt = (EditText) mview.findViewById(R.id.editText1);
........
.....
.....
} else {
ViewGroup parent = (ViewGroup) mview.getParent();
parent.removeView(mview);
}