Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何时候setContentView()多次调用,以前的视图都会被破坏。尽管多次调用 ,如何创建一个将存在的视图,作为叠加层或在主窗口下setContentView()?
setContentView()
好的,我想我会回答自己:经过一些阅读,我相信我不应该setContentView多次打电话。相反,我应该使用一种布局,该布局具有我想要存在的视图,尽管布局发生了变化,并且也将ViewFlipper其用于布局更改而不是setContentView.
setContentView
ViewFlipper