编程在黑莓手机中沿两个方向水平移动图像? [英] Program to move the image Horizontally in both directions in blackberry?

查看:100
本文介绍了编程在黑莓手机中沿两个方向水平移动图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在黑莓手机的两个方向(即,从右到左,从左到右)上水平移动添加的图像.请帮助我解决这个问题.

I want to move added image horizontally in both directions i.e(right to left and left to right) in blackberry. plz help me out for this

推荐答案

您需要在按键时做出反应.
net.rim.device.api.ui. component.ButtonField [ keyUp事件 [
You need to react on the event of pressing a key.
net.rim.device.api.ui.component.ButtonField[^] has a method for keyUp event[] for this.

On that event you need to place the image some pixels to the corresponding side and update the view.

But as always take one step at a time:
- first try to display the image
- try to place image at different places
- try to react on button
- set image to new place on button event


这篇关于编程在黑莓手机中沿两个方向水平移动图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆