two labels in a single line, BUT on the left and right side

Hello

I try to have 2 tags aigned in one line, but on both sides of the container. for example,.

desired output

# start the container

-------------------------------------------------

text1                                               text2

...

-------------------------------------------------

container #end

to get two labels in one line, I can use StackLayout and use its orientation (LeftToRight) property. but I get the following result:

# start the container

-------------------------------------------------

text1text2

...

-------------------------------------------------

container #end

If I use GridLayout and use HorizontalAlignment.left and HorizontalAlignment.Right on both labels, I get the following result:

# start the container

-------------------------------------------------

Text1

Text2

...

-------------------------------------------------

container #end

Why does not work...

Page {
    Container {
        layout: DockLayout { }
        Label {
            horizontalAlignment: HorizontalAlignment.Left
            verticalAlignment: VerticalAlignment.Top
            text: "On the left"
        }
        Label {
            horizontalAlignment: HorizontalAlignment.Right
            verticalAlignment: VerticalAlignment.Top
            text: "On the Right"
        }
    }
}

Tags: BlackBerry Developers

Similar Questions

  • I have black lines 2 inches on the left and right side of my screen how can I expand and remove black maqrgins

    I have 2 inch black margins on the left and right of my screen - how to remove and expand my screen

    Hello
    I suggest you run the fixit and see if it helps:
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-monitor-and-video-card-problems

    For more information, see this link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/getting-the-best-display-on-your-monitor

    It will be useful.

  • I am trying to embed vimeo files but they appear with black borders on the left and right edges

    On vimeo, videos are in the right proportions. But as soon as I bring the videos in Muse with a video widget, a black border appears on the left and right sides.

    Help with the help of Adobe Muse CC

    The iframe that contains the video is set on a height of 650px. The proportions of your video is 16:9. Width of the video is of 1155. 1155px 650px x is 16:9, so your video is displayed correctly. If you were to try to force the video to fit on the edges left and right, someone viewing on a screen smaller than your will see the black bars at the top and bottom.

  • Justify the Divs to the left and right of the page with the gaps between the two. Possible?

    I have 4 eponymous divs with different images and rollover Javascript on them, spread horizontally on my page effects.

    I'm trying to align their so there are gaps between each div, but NO space on the right and left side, so that they are tight to the edge. If I put a margin on the right side of 5px, for example, the div right hand still has a gap of 5px, otherwise he's going on the next line.

    Of course, I can make a new rule for the div of the right hand with no margin to the right, but this will make more complex Javascript code with perform effect hover on two types of divs.

    Is it possible to pin the divs to the left and right of the page with an 'auto' margins inbetween them?

    Untitled.jpg

    I found a solution in any case. I've adjusted to the width of the div so that they coincide closely each side. Then align the images (HTML) 'Left, middle, Hugo, right' so that they are tight against each side and have differences even between them. If all goes well, there is no flaws with this method, it seems to work pretty well.

  • Fine lines on the left and right (Firefox Mac)

    There is a thin vertical lines on both sides of the screen in OS X version of Firefox. I noticed in Safari, that there are no lines. Help, please.

    You're welcome and thank you for reporting that you have managed to solve.

    I have marked your answer above as being the solution.

  • Do a LabelField show two pieces of text left and right?

    I think I'm missing something obvious here. I'm trying to customize a LabelField such that I pass two strings and then display each string on the left and right justified respectively.

    I tried the substitution of layout() but were not able to make it work properly.

    Edit: Both pis... I solved it with two calls drawText() during the override of the method object.

    It's about how I would have suggested that you do!  I guess that you specify the LabelField with FIeld.USE_ALL_WIDTH as style?

    In any case can mark you this as resolved?

  • My Nano Gen 7 is recognized on a single computer, but not the other

    My Nano Gen 7 is recognized on a single computer, but not the other.  I went through all the troubleshooting tips.  Different cables, try all USB ports, uninstall/reinstall itunes, etc.  I have itunes more up-to-date software.  I was able to connect the ipod to my backup computer and confirmed that I also have the software more up-to-date on the ipod.  Since I am able to connect to it, I also did a factory reset the iPod, but it still wouldn't connect to my main computer.  Nothing has worked.  I think there must be a setting on my pc.  I use the latest version of windows 10.  Any suggestions are welcome.  Thank you

    I just bought an Ipod Nano 7th generation and itunes does not recognize it.  Had by all the standard troubleshooting (uninstall/install itunes, etc.) and no luck.  My PC recognizes, he calls the 'nano' but acknowledges as a USB mass storage device.  I spoke to a support person from apple for more than an hour to help me troubleshoot it, finally they just said it was a windows problem, and I need to contact Microsoft.

  • Two different Skype on both PCs, but on the same calls running account

    Hi all

    So I don't have the means to test this until I actually need.

    But it would be possible to operate two different Skype on both pc but on the same account calls.

    So I am connected with the same account on both pc - A and pc - B. With pc - A I want a video call with person X and pc - B a video call with person Y.

    Is it possible on the same account at the same time? Or should I make an account separate to that?

    Kind regards

    Theoretically, this can be done, but very quickly your account will be reported as abuse the terms of use, and the account can be blocked.

  • left and right justify the same line of RitchTextField

    Hello

    How to justify to the left and to the right the same line of text...

    There is no way to do currently - DrawStyle.HFULL is listed as "not yet implemented" (I wonder about this 'yet' - there is no more BB OS versions after 7.0, is there?)

    If you want to achieve, you will have to be implemented by program (not too hard, but not trivial either).

  • I forgot my apple ID and password, that's why I can't ativate my ativation icloud, but I the EMI and the serial number of my device and all documents in my camera. Please give me an advice. Thank you

    I forgot my apple ID and password, that's why I can't ativate my ativation icloud, but I the EMI and the serial number of my device and all documents in my camera. Please give me an advice. Thank you

    iforgot. Apple.com

  • What is the best way to resize an image, but keep the height and width of the same original size or format?

    What is the best way to resize an image, but keep the height and width of the same original size or format?

    I tried to use the function of the size of the Image, but when I changed the size of the image, the width has not changed with it.

    Thanks for the tips!

    Hi Landon.Luu,

    You want to keep the relationship between the width and height to be the same?

    Click the constraint between width and height to keep the ratio intact.

    Kind regards

    Claes

  • No toolbar. Tools Windows me gives the right toolbar, but still miss me the top and right those shown in the tutorials?

    No toolbar. Tools Windows me gives the right toolbar, but still miss me the top and right those shown in the tutorials?

    Thank you. He started working after I updated the software, I only got it yesterday so I don't know why she needed to be updated. But guess it of life, all work very well now but

  • The upper guide of purge is absent, but the right, the left and bottom bleed guides see the.

    In Illustrator CC 2015,.

    The upper guide of purge is absent, but the right, the left and bottom bleed guides see the. Why does this happen? My size is 40 "x 38" with 1"bleed. This has happened lately format that I work projects of large format... It is not a big worry, but I'm a bit OCD when something should be there.

    Screen Shot 2015-10-28 at 11.06.27 AM.png

    Even zoomed in, the guide still does not appear.

    Screen Shot 2015-10-28 at 11.09.10 AM.png

    Try to use the icon of the rocket in the command bar to disable GPU acceleration.

  • Place content on the extreme left and right of a line

    I have a complex form where each line has different layout requirements.
    Some lines are spaced in the browser, others are framed on the left.
    And others, like the lines at the top of the page must have the text on the left and a date on the right end of the same line.

    What is the best way to layout of this type of form?

    Try with the following:

    
      
        
          ... put some components here ...
        
      
      
        
          ... put some components here ...
        
      
    
    

    Dimitar

  • I fill out an application online for the school. Is it possible to configure Firefox to check the spelling in a single-line text box without having to right click each time?

    I want to be able to set the spell checker to occur automatically, even for single-line text boxes.

    You can set the pref layout.spellcheckDefault to 2 on the topic: config page to perform spell checking on line and unique multi line text fields.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed see the bold (user set).
    • Preferences you can restore the default value or change via the context menu.

Maybe you are looking for

  • Application Builder in LabVIEW 7.0 error

    I maintain a few legacy in LabVIEW 7.0 code.  I recently (maybe in the last month or almost) summer get error 1003 in Dist copies Non - VI Files.vi (part of App Builder) when my building code.  I did a few tests, including building much more simple s

  • When you try to add a printer, get error Printer Spooler service is not running

    I lost my printer and when I click Add printer, I get the message of this operation could not be completed. The print spooler service is not running. Then, the computer detects the new hardware and says the RPC server is unavailable can help?

  • Windows Vista Home Premium-reinstall using disks OEM, error file missing

    My existing plant from my factory installed DVD Windows Vista Home Premium will not reinstall reinstall disks.  I get a missing file error.  The existing facility is a Service Pack 2 (service pak 2 update).  This software has been installed on my 200

  • How to extract a file path is too long

    I can't extract a file because it is too long.  It has the error code 0 x 80010135.  How can I fix? Karen McIntyre E-mail address is removed from the privacy *.

  • Windows 7 Explorer jumps right off the screen

    I don't know what we did, but when we try to make it appear from the bottom drawer open Explorer, you can see page breaks off the screen to the right amd disappers and that it does not come up on top of the screen where you can veiw it. Help