Answer the question
In order to leave comments, you need to log in
How to change View when Fragment is created?
Good afternoon, when creating a fragment, you need to perform a certain action on the View'shka inside it, in the future you do not need to do this action. The fragment will periodically disappear from the screen, i.e. move from onResume to onStop. Is it possible to do without creating an additional flag variable?
Now I have it implemented like this: in onCreate() I set the variable mFragmentCreated = true and check it in onCreateView.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question