Cause
I need to do this because I want to get an accessible fragment view cache, and then create a Bitmap from this view. This Bitmap will be used for publication on Facebook.
Problem
When I create my fragment, views are not created because they were not added through the fragment transaction and because the displayed view is not displayed to the user.
I also do not want to draw these views manually, since I will not get an exact copy of the screen.
My question
Is there a way to have full functionality (same functionality as if you were adding it through FragmentTransaction) of a fragment without actually showing the fragment?
I need to have access to the fragment view when it is not displayed.
thanks in advance
Stustirling
source share