pedrovgs / DraggablePanel

Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component.
Apache License 2.0
2.99k stars 605 forks source link

Fragments retaining on configuration changes #61

Open dmitriigriazin opened 9 years ago

dmitriigriazin commented 9 years ago

Guys, as I see, your project doesn't provide methods to retain fragments on rotation, for instance. Using draggable panel as a part of activity layout, one should always call draggablePanel.initializeView() in onCreate() method, because it actually calls the method to inflate the draggableView layout. However, you need to set up top/bottom fragments before. But there is no way to get my previously created fragments back by their tags.

Plz, tell me, if there is no workaround in your lib and fix is needed. I suppose the corresponding tags and the API method to get them should be added.