user interface - Blackberry - Issue with background image when scrolling down the screen -


I'm portraying the background image (320 * 480 size) for the home screen below I scroll the scrollbar in the screen There are many other controls, such as screens, labels, edited fields etc. in addition to many horizontal managers.

My problem is, when I scroll down the screen, background image below it I'm looking at the white normal background. It does not look good, so I want to know why the screen scrolls down in the background. I'm still getting, how can I keep a background image?

  Public MyHomscreen () {super (); LabelField Epithelial = New Labelfield ("MyApp Title"); SetTitle (appTitle); Background = bitmap.gettimap processing ("homescreen.png"); _ Container = New Vertical Field Manager (Manager .VRTCL_SCRL) Manager. ORTCLA_SSCRLABR) {Protected Wide Paint (Graphics G) {Int y = MyHoScreenIceGetManager (). GetVerticalScroll (); G.clear (); G.drawBitmap (0, 0, background.getWidth (), background.getHeight (), background, 0, 0); Superparent (g); } Protected zero sublayout (int maxWidth, int maxHyight) {int width = background.getWidth (); Int height = background.getHeight (); Super.sublayout (width, height); SetExtent (width, height); }}; Chief Vertical Manager = New Vertical Field Manager (Manager .VRTCL_SCRL | Manager .ORTCLA_SSCRLAAR) {Protected Zero SaleBlout (IntexVindath, et MaxHit) {Int width = Background .getWidth (); Int height = background.getHeight (); Super.sublayout (width, height); SetExtent (width, height); }}; // code to add manager to screen etc.}  

Unfortunately, you Do not get yourself an image to restore yourself automatically. Once you scroll toward the end of your image, you will have to recreate the image.

We had this problem and we tried to recreate the background, but the problem we were running is that the GUI was always the element on the changing background (if you have a label with white text , It may look right from the beginning, but when you scroll and the background also runs, it can overlap a white part of your background, or some other similar problems). We have not yet decided to keep a scrolling screen and keep the interface simple and there are buttons that launch other screens with other elements. In this way, they are not on one screen with many scrolling users, and this fixes the background image problem


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -