Android fragment :should back to fresh page -
i have 2 fragment , b. fragment : have 1 view, scroll view bottom. after move fragment b, touch @ fragment b move fragment a, want see view have scroll top(same refresh layout fragment a. when oncreate).
my view : newheader, pulltoreveallistview, button search , framelayout parent
use function inflate first fragment i.e call function in oncreateview of fragment a
public view createpersistentview(layoutinflater inflater, viewgroup container, bundle savedinstancestate, int layout) { if (_rootview == null) { _rootview = inflater.inflate(layout, null); } else { ((viewgroup) _rootview.getparent()).removeview(_rootview); } return _rootview; }
Comments
Post a Comment