BackgroundFactory draw gradients only left to right not up-down

I want to draw a gradient backgrount from top to bottom.

BackgroundFactory.createLinearGradientBackground(
    colorTopLeftDefault, colorTopRightDefault,
    colorBottomRightDefault, colorBottomLeftDefault);

topLeft = Color.BLACK

topRight = Color.BLACK

bottomRight = Color.WHITE

bottomLeft = Color.WHITE

the complete context is BLACK

topLeft = Color.BLACK

topRight = Color.WHITE

bottomRight = Color.WHITE

bottomLeft = Color.BLACK

the background is a gradient from LEFT - to - RIGHT

I'll put in the background to

VerticalFieldManager(USE_ALL_WIDTH | USE_ALL_HEIGHT)

read this document and 5.0, it should work without substitution object.

substantive definition as an Image (.png) works well

thx for the help

GOD

The cause of the issue is the USE_ALL_HEIGHT with a VerticalFieldManager style.  This creates a very long Manager.  Result is that the gradient are touching on an area as large as the first screens together appear black.  Remove this style and you should see that it displays properly.

You can add the gradient at the level of the screen to a screen with the USE_ALL_HEIGHT style to work around this problem.  An example that does something similar can be found here (it uses a solid color and the border instead of a gradient):

Change the background color of a form

http://supportforums.BlackBerry.com/T5/Java-development/change-the-background-color-of-a-screen/Ta-p...

Tags: BlackBerry Developers

Similar Questions

  • My C309g is misfeeding (drawing) book only on one side

    My C309g blocks - it draws paper only on the right side and feed a piece of paper.  I cleaned the rollers, checked for debris, all removable parts off, cleaned and replaced.  No change.  Suggestions?

    There could be a device that has become damaged in the printer. If that were the case, then the printer would be able to draw on the side that are still functioning. You see the gear turns on both sides, if you look at the front as it prints?

    There is a document with steps to help fix the issues paper jam found here.

    Let me know if it helps.

  • Re-size pages from left to right?

    Hi-

    I use windows from DOS, now have Vista. Probably, this applies to most of the BONES.

    All windows / pages re-size from the lower right, or down, or right of the panels. Everything is just left. I'm looking to resize the pages of the FOUR corners and sides top or left of the panels - from left to right, from top down. Basically, I want to be able to focus in on any section of a page.  Can't do it now.

    Any way to do this in Windows? All programs, utility?

    Thank you in advance.

    T

    Hello imd1tv,

    I believe you are referring to Internet Explorer, correct?

    The only way to do what you say, I think you already do, which is resizing the window and using the window's scroll bars to place the website section in the visible section of the window. Other than that, I know no way, or third-party applications to accomplish what you are looking for.

    Hope this helps

    Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Tecra M1: left and right arrow keys do not work

    Hi, my tecra M1 upwards, the left and right arrow keys do not work on the standard keyboard - no external keyboard. I can't find a keyboard tester to see if the computer recognizes these keys. Only the low key works - no problems with others like PG. Prev or PG. Next, etc. etc. Any suggestions?

    Mike Mori

    Hi Mike

    When you start your laptop at the beginning you can see the symbols of disk in the lower corner of the screen. If a player is selected under the side, you will see a short line. When these symbols appear press immediately to the left or right arrow several times to see if the line will be cut to the left or to the right. On this way, you can try to check if these buttons are recognized from the beginning.

    Please inquire about the results.

  • Only the left speaker does not work on Satellite A300

    Hello

    I have a problem with my Toshiba Satellite A300: the left speaker does not work but the right to a good job.

    I think that this is not a software problem because reinstalling driver does not solve the problem, and I have the same problem with a Ubuntu live CD, also is not a sound card problem because his work well with a headphones or an external speaker.

    The cause is probably a coward of connection between the left speaker and sound card.

    Please tell me what to do.
    I can fix it without sending the laptop of Toshiba ASP?

    Hello

    If you ask for an opinion, so here's one;
    I think that it s speaker malfunction, I doubt that it s a loose connection or something like that and I would not recommend trying to fix this problem yourself.
    First of all, know all you n t that's exactly wrong, and second, you will lose your warranty and could damage other parts if you would disassemble the laptop.

    In this case, the ASP in one and only one good way to solve this problem.
    Contact the guy and ask him for the handling of the Fryer!

    Good luck

  • left and right arrows no longer work in Safari, work in Excel, the top and bottom do not work

    left and right arrows no longer work in Safari, work in Excel, arrows up and down to work in Safari.  Any suggestions?

    What you're trying to do with the left and right arrows in Safari? The only time they will do anything is:

    • in a text edit box
    • If the page has a horizontal scroll bar
    • If the page is zoomed
  • Satellite C55D - buttons left and right touchpad do not work after the upgrade to Windows 10

    Just what the title says. My touchpad on my C55D satellite works well, but click keys do not work. I tried everything I know how to solve this problem and can not understand. It doesn't seem to be any "Advanced settings" anywhere, as I suppose it would be where would be adjustments.

    Help, please!
    '

    Hello

    The 'old' previous touchpad (Synaptics or momentum) is installed on your laptop?
    You should check this area programs & features

    If so, uninstall this application and restart the laptop.
    Then check if the left and right click touchpad would work again.

    By the way: have you verified the functionality of a USB external mouse? It work correctly?

  • Click left and right touchpad does not work on Satellite L50

    I have a new laptop Satellite L50 CI3. However, it seems there is a problem with the left and right keys on the touchpad.

    Right-click behaves like a left click i.e. it does not open a menu.

    Left click cannot drag and drop, including when you use the scroll bars.

    I reinstalled everything, but nothing has changed. Is this a common problem? Is this likely to a hardware or software problem?

    Hello

    On this virtual path, it is not easy to say what the problem is here. Have you noticed this problem on there first day of use?
    I mean when you start your laptop for the first time that it has original factory settings and everything should be OK.

    If I just understand that there is some response when you use the touchpad buttons so that you can try is to set all the options of touchpad on default settings.

  • Locking the view from left to right on iPad, so can only scroll

    Hi all!

    Very new to all this.  I've done a few worksheets that I am very satisfied.  They consist of long lists of inventory and adjustments of table on the screen of my iPad perfectly from left to right.  All is needed is to scroll through hundreds of entries.

    But on the iPad, it is very easy to also scroll to the right while you're sliding your finger "down".  This exposes the large white area to the right of my table, and I have to drag around to get my map centered on the screen.  Is it possible to keep this locked?

    Thank you
    Jared

    Best post in discussions of iWork for iOS , because this one is for the numbers for Mac. However, the general approach is the same.

    As much as I know there is no way to "lock" a table instead of a way that it does not disappear off the coast of the visible part of the Web. But maybe you don't have to worry about locking it. To move to the top of your table just wide from top left to bottom-right. To move to the bottom of the wide table from lower left to upper right. Sliding slightly to the right in both cases you can keep your table in the view.

    The movement is similar to a trackpad on Mac. It will become second nature after a while.

    SG

  • HP - 15 af008ax: my new laptop usb port for the left side does not, only 1 work on 3 Please help me

    My new laptop usb port for the left side does not, only 1 work on 3 Please help me

    Hello:

    Have you installed the drivers for W7 32 bit amd chipset?

    If this isn't the case, you must install them and reboot the PC to get the 3 for usb ports work.

    You want the first file on the Web page.

    http://support.AMD.com/en-us/download/chipset?OS=Windows%207%20-%2032

  • Accelerometer reading is not being updated smoothly when you move your device on the left to right or right-left in the Horizontal plane

    I'm developing an app for BB 10 devices using the accelerometer. I tested on a BB 10 Dev Alpha device.

    When I move the camera in LANDSCAPE MODE on the left to right or from right to left direction in the Horizontal plane, the accelerometer readings are not updated day smoothly as they do in other directions.

    In addition, the update in the Vertical plane is not as by expectations, is not through with Android, Iphone or other blackberry devices.

    I even checked BlackBerry example project of the accelerometer. It has the same problem. Has anyone else facing the same problem? Is there any solution for this?

    Accelerometer reading is not updated because the example provided on github at this rate of accelerometer is set to very high. code: ACCELEROMETER_RATE = 25000 which is high. As directed by their document

    Is the rate at which the data from the updates of the material. The rate of update of the material
    is defined below using sensor_set_rate. If we set this to 1000, then it properly updated and gives the readings that we arrive on the java BB device.

    Replace the code: ACCELEROMETER_RATE = 1000, then it updates corretly.

  • I have a problem with the mouse cursor moving left to right and not conversely when switching between screens.

    Original title: change the direction of the mouse moves from the main screen to the external monitor

    My mouse movements from left to right when moving from one screen to the other, I want that he move right left how do that change

    Hi Jayson Bourne,

    Welcome to the Microsoft community. According to the description of problem cursor mouse moves from left to right and not vice versa when switching between screens. Provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         What is the brand and model of the mouse?

    I'll help you with this problem. I suggest you follow these methods.

    Method 1: Follow the steps in the article.

    Change the settings of the mouse

    Method 2: Update the latest drivers/software for the mouse.

    Updated a hardware driver that is not working properly

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

  • My shortcuts Office does not, to the left or right click nothing.

    My shortcuts Office does not, to the left or right click nothing.

    My shortcuts Office does not, to the left or right click nothing.

    Suggestions:

    1 rebuild icon cache. Yours could be damaged.

    http://www.SevenForums.com/tutorials/49819-icon-cache-rebuild.html

    2. If this is a recent problem, and if you remember one ate when shortcuts worked ok, do a system restore.
    Choose a date where shortcuts worked as your restore point.
    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    3. restore explorer.exe

    Press CTRL + Alt + Delete > Task Manager > processes tab > right click on explorer.exe > click on end process > Applications tab > new task... > in the Open box, type explorer.exe > OK

     
  • all sets of headphones are only receive the right left sound doesn't work-headphones only

    my headphones are plugged into the computer before taking and I get only sound right, and I tried three sets of headphones

    Go to the mixer and make sure that the balance is equal to the left and right signals.

    Also do this for any software, you can use that built into the mixer.

    See you soon,.
    Jerry

  • Hyper-v full screen is not copied via hyper-console and have black screen space between left and right

    Hi all

    Please help me adapt my machine full screen virtual hpar-v usieng, I tried all view-> progressive even fullscreen is not occupied any screen and having some space left and right are busy.

    Hi Ajay,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the link below.

    http://social.technet.Microsoft.com/forums/en/category/w8itpro

    Answer please if you have any questions.

Maybe you are looking for