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.
我应该只初始化并保留两者,并设置visibility为VISIBLE还是GONE取决于状态?有没有更好的方法?内存问题怎么办?我想交替使用 RecyclerView 和 WebView。我想避免使用 Fragments - 我已经尝试过了,Activity、UI 和 Fragments 之间的责任分离简直就是地狱。
visibility
VISIBLE
GONE
如果这很重要,我会将我的 UI(从 AnkoComponent 继承)保存在一个单独的类中。