摘要: 在客户端请求服务器时,加上一个漂亮的Loading页面,但是又要求显示Loading的同时,提交数据的页面可见。

最终结果:

Loading页面制作

参考资料:

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/How_to_-_Implement_advanced_buttons,_fields,_and_managers.html?nodeid=2406256&vernum=0

 

这里用到了两个Screen,LoginScreen用于填写表单数据,点击Login时,弹出WaitingScreen页面,注意

在paintBackground中设置页面的透明度参数,

在paint中设置padding,让小图片可以占据整个屏幕的区域,但是只在屏幕中间画位图。

      代码下载:(google code无法访问,稍等。。。)

相关文章:

  • 2021-07-24
  • 2021-08-14
  • 2021-12-12
  • 2021-06-12
  • 2021-11-29
  • 2022-02-07
  • 2021-08-11
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2021-09-04
  • 2021-07-27
  • 2022-02-20
  • 2022-02-01
  • 2021-11-29
相关资源
相似解决方案