标签:
我创建了1个activity里有4个tab的fragment,假如4个tab为ABCD
在tab C中,初始化UI,UI中有一个EditText:
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //Inflate the layout for this fragment View view = inflater.inflate(R.layout.new_bangya, container, false); this.initUI(view); return view; }
假如从A切换到C,在edittext中写入内容,再切回->A->C, oncreateView都会被调用,但是发现edittext里的内容却还在!
原因未知
标签:
原文地址:http://www.cnblogs.com/jiangz222/p/4397014.html