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但是,我假设startActivity在切换视图时可以更好地节省内存。有什么在哪里使用的建议吗?
setContentView
startActivity
看看http://www.androidguys.com/2008/07/09/inflation-is-a-good-thing/ 它可以成为您探索的起点。