1

I face a problem on how to maintain the life cycle of a game logic. I define a game logic in a Fragment. When I switch game fragment to other fragment like setting fragment, the fragment is released and the game logic is also released.

How do I maintain the game logic?

4

1 回答 1

0

尝试使用内部片段..也就是说,有一个父片段而不是子片段..并根据您的需要使您的设置片段可见和隐藏..

于 2012-08-01T05:53:34.347 回答