Android Fragment Oncreateview Creating Duplicate Views On Top Of Each Other
In my app, when I suspend, upon resume, I get duplicate views stacked on top of each other, with the topmost being the only editable ones. My onCreateView() is below. Any suggest
Solution 1:
Your problem is not in onCreateView()
, most likely. Instead, I suspect that you are creating the fragment a second time. You only need to create a fragment once, even if activity is destroyed and recreated due to a configuration change (e.g., portrait -> landscape rotation).
Post a Comment for "Android Fragment Oncreateview Creating Duplicate Views On Top Of Each Other"