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(your layout)……onCreate()新活动
setContentView(your layout)
onCreate()
这可能是你得到空白屏幕的原因......