Resolution independence

Hello

I realize a ListView with two labels.

A label must be on the left, the other on the right.

It works very well with this code:

import bb.cascades 1.0

Container {
    property string txtLeft
    property string txtRight
    property variant colLeft
    property variant colRight
    layout: StackLayout {
        orientation: LayoutOrientation.TopToBottom

    }

    Container {
        minWidth: 768
        layout: DockLayout {

        }
        Label {
            horizontalAlignment: HorizontalAlignment.Left
            text: txtLeft
            textStyle.color: colLeft
            textStyle.fontWeight: FontWeight.Bold

        }
        Label {
            id: lblRight
            horizontalAlignment: HorizontalAlignment.Right
            text: txtRight
            textStyle.color: colRight
        }
    }
    onTxtRightChanged: {
        console.debug("txtRight changed to: "+txtRight);
        lblRight.text = txtRight

    }
}

But as you can see with this line of code

minWidth: 768

And only with a Z10 in fashion Portrait.

How can I automatically calculate this line, it works with a Q10 or landscape a Z10 in mode?

Thank you

Marcus

"preferredWidth: Infinity" will cause the container to take all available space horizontally. Set this parameter to an external container as well.

If the labels must not overlap, you can use a StackLayout with orientation LeftToRight. StackLayoutProperties with the value layoutProperties "spaceQuota: 1" for each label. Space will be distributed evenly between them.

Tags: BlackBerry Developers

Similar Questions

  • CC of Photoshop on a screen high resolution on Windows 8.1

    I use a new Lenovo Yoga 2. The native resolution is 3200 x 1800. Most Windows applications use the scale to expand the menus and other aspects of their user interface. However, Photoshop CC is virtually unusable in this resolution because it does not honor the scaling. I have to put the resolution up to 1600 x 900 before launching Photoshop CC. Extremenly inconvenient.

    Does anyone else have this problem under Windows?

    Adobe has provided an answer in another thread on this forum this week that indicated that the problem is with the unavailability of Microsoft APIs necessary, and nothing to do with perceived favouritism Mac vs Windows.

    I recall, resolution independence code also partially exist very long in advance on Mac but was not fully usable for several versions of Mac OS X; apparently the implementation of screens Retina forced Apple to finally finish the job. So it was not a simple switch to throw on the side Mac either.

  • color photo can be printed on t-shirts?

    I don't know if this is the best place to ask this question but I hope that there are enough users here with t-shirt printing experience.

    I created a realistic work of photo for printing labels for a customer as a requirement of style. Now they also want this work longer printing on t-shirts and told me they will give him to another designer to vectorize it for this purpose. Technically, the work can be considered a color photo of landscape with a group of people at the front. I'm worried, how the image will look like after this, but from what I've seen impressions t-shirt are for the most part, with some dull colors or rulings art works. I think these are limits and I can't imagine how the work can look at something close to it. I don't have a lot of experience t-shirt but I understand vector vs raster and I don't know if my client knows what they are doing and wonder what you would do if you're in my situation.

    I would greatly appreciate your advice

    [a] color photo can be printed on t-shirts?

    Of course, it can. You can even order have made it one-off measures, online. On clear or dark substrates. Without even properly prepare the image, or even have an idea on how to do it. (My wife does all the time for gifts and arts mechanical and such.)

    .. .a photo realistic illustrations for printing labels for a customer. Now they also want this work longer printing on t-shirts and told me they will give him to another designer to vectorize it for this purpose... I don't have a lot of experience t-shirt but I understand vector vs raster...

    They [the customer]? and maybe even the other designer, do not know what they are talkking about. Contrary to widespread belief, work doesn't have to be "vectorized" in order to print on clothes, more that there must be vector illustrations in order to print on paper. Just like printing on paper, the work must be:

    • .. .the sufficient resolution for the size in which it will be printed.
    • ... color separable, appropriately for the used printing method.

    People talking about garment printing often confuse the concept of 'vector and raster' with "line from continuous tone art." Work of Contone must be 'your projected' (not talking print here) in order to print using color quadri (printing a small number of "primary" colors in a sort of model to simulate other colors).

    Contone work tone control must be done in printing, textile, everything as it should be done in the offset printing on paper. This is true regardless of what printing process is used for printing textiles. For printing directly on the fabric, the work must be the halftone color separation points (or other shapes), or stochastic points or bosses. The same should be done if textile printing is by heat transfer (the transfer must be color separation) or any other method of marking.

    Again, this has nothing to do with the work to be vector or pre-rasterized. It has to do with its continuous tone. You said that the work is "photo realistic". Yet whether vector work; It suggests only that we work continuous tone.

    Technically, the work can be considered a color photo of landscape with a group of people at the front.

    Technically, it's a description quite ambiguous. A picture of a landscape with people? Photo of a landscape color stacked behind some vector drawings of people?

    .. .to go from what I've seen t-shirt prints are for most works with some dull colors or line art screens.

    Then, you need to get out more. Today, you can easily find that t-shirts printed with images of contone printed in a variety of print and the tone of screening methods.

    I think these are limits and I can't imagine how the work can look at something close to it.

    Each printing method has limits. In general, people assume T-shirt silkscreen prints (as in screen printing, printing, but the screens are not silk these days). Screen printing requires generally relatively course tone control (either points of halftones, halftone lines and diffusion dither, dashed), compared to offset printing. And Yes, this is a limitation for offset printing. But it is also one of the reasons why the "requirement" of vector artwork is a myth. A requirement of vector artwork isn't all about resolution independence, contone compared to the line drawings. And the resolution is generally not a problem to print on a T-shirt, something originally designed for offset printing because the resolution requirements are relatively modest.

    Each printing method also has its own advantages. One of the advantages of screen printing is that its use of the printing process is not necessarily limited to only four inks. Another is that the screen printing inks can be opaque; You can actually highlights made impression on top of tones and semitones. That is why it is very bright and very saturated coloring can be done in silkscreen using technical dotted Posterization or taking the place of classic AM or FM your screening. And that is why the best screen printing very frequently creative use these methods instead of regular halftone screening.

    .. .wonder what you would do if you're in my situation...

    If you are looking for advice here, I would like to show a screenshot of the work. As almost always in this forum (or any other like him), best advice very much depends on the nature of the particular work.

    If it was me and my work, I ask the customer which is the company printing the packages he has in mind and then find out if its capabilities to respond to the work and the results expected. If it is not, I would recommend a suitable textile printing company and I would be optimal the work so that he makes me (and charge accordingly).

    JET

  • My image is resized when I place it in another empty file

    Hey everyone, I created food item cards in photoshop elements 6 by opening a file empty and it size 4 x 2.  I added a border inside pixels.25 and adding text and a picture.  I made cards separate for each item. So to print, I did a 8.5 x 11 white canvas and added my cards so that I could print more than one.  When she printed they resize to 5 x 3.  If I simply printed on an 8.5 x 11 paper he printed in the right size.

    I know that its just something simple that I do not.  Can anyone help? I have the first anniversary of my son Saturday and I need to get these done.  Thank you so much Gaye

    The ppi of the lower layer of resolution determines the resolution for everything in the picture. So if what you put in this image, it is at a different resolution, it is resized when you paste. If your pasted object is 72 dpi, for example, it will become crushed up to 300 dpi, so smaller. If the pasted object has a resolution higher than the lower layer, it will become larger than it was before pasting.

    It's easier to make sure that everything happens in the image has the same DPI before (image > resize > image size), or you can use the file > Place, which makes your hardware pasted a dynamic object which is resizable without loss of quality, but who needs simplified (and therefore loses resolution independence) until you can do big thing to her.

  • Question about resolution movie downloads

    If I buy a movie at a certain resolution (780p for example), but I want more later re - download at a higher or lower resolution (SD or 1080 p), can I do so and how?

    Same question perhaps for music. Some of my songs have been bought before the latest Apple codecs.

    Any help is appreciated!

    THX!

    Once you have made a purchase on the iTunes store, you will see your purchased items in the menu under accounts bar > bought. You can simply select the item purchased and re-upload.

    With regard to the resolution of the film for films that are offered, and you select the resolution, you can download it again and select a different resolution. For movies that are available as separate download to SD, 780, or 1080 points, you would be limited to the original resolution you selected.

  • resolution screen on a Mac Mini

    I'm considering buying a Mac Mini and want to use my Benq Sensye LED current monitor that displays in 16 / 9.

    I'll be able to use the resolution even if I connect it to the Mac Mini?

    What is the resolution of the screen?

  • (Solved) Mac OS Sierra 4 K with Dell P2715Q screen resolutions

    (original post completely changed)

    After upgrading to OS Sierra, Mac OS does not recognize correctly apparently my Dell P2715Q monitor and would not offer the complete list of resolutions.

    A number of reboots solved the problem - resolutions are fully available.

    in the display control panel click on the chipped by holding down the OPTION key

  • Audio iPhone 7 and high resolution

    Hi-

    Thinking of buying iPhone 7.  I notice that the DAC is now external to the phone for headphones cable good lightning and even lightning to the 3.5 mm adapter contains a small DAC inside.

    What this means that iPhone 7 accepts high resolution audio files? (I'm talking about 24 bits, files of 192,000 kHz with flow rates up to about 9 216 kbps, like the ones you can buy Pono music or other titles HD).

    The Apple store now sells items such as the helmet Planar Audeze with high quality converters.

    Has anyone tried this yet?  It may convince me to upgrade my iPhone 6.  (I currently use one of those Toblerone shaped players Pono for hi res music).

    Hi there, Phlac!

    Thank you for joining the communities Support from Apple! It's a big question about the audio formats supported by iPhone 7. See this link which has the Technical Specifications for iPhone 7.

    Audio playback

    • Audio formats supported: AAC (8 to 320 Kbps), AAC protected (from iTunes Store), HE - AAC, MP3 (8 to 320 Kbps), MP3 VBR, Dolby Digital (AC-3), Dolby Digital Plus (E-AC-3), Audible (formats 2, 3, 4, Audible Enhanced Audio, AAX, and AAX +), Apple Lossless, AIFF, and WAV
    • The user configurable maximum volume limit

    Any audio that works perfectly with the iPhone 7 falls in these formats! Have a great day!

  • 34 "wide ultra LG and MBPR 15 'Sierra resolution problem '.

    Please advise, people

    34 "wide ultra LG and MBPR 15"NVIDIA GeForce OS Sierra do not support the native resolution.

    In fact, I have 25 "model UM25. However, Sierra recognizes as UM34 anyway, and I'm having exactly the same problem. I've updated to Sierra yesterday.

  • CAN´t define a proper resolution for UltraWide external screen 21:9 (2560 x 1080 px)

    After the installation of macOS Sierra my external screen shows only 16:9 (1920 x 1080 px with black bars on each side). He used to work before I updated. Now the correct resolution is not even appear in the display settings on my MacBook Pro (end of 2015). I don't want to use or pay for any external software, please fix this.

    It seems to be a common problem: macOS Sierra no longer supports monitors ultrawide?

  • Videos and photos full resolution will not download

    My iPhone has the option 'download photos in full resolution' is enabled. I decided to do the same thing for my iPhone but when I went to the photos app on my ipad, he said not "enough space". I had 22 GB of free space on my ipad. My library is only 17 concerts. But it refuses to download videos and photos in full resolution. I even tried turning off iCloud photo library, remove all local copies of my photos and videos, turn it back on and selecting 'download full resolution '. Same question. My next option is to restore my iPad for a clean install, but I rather not do. Any ideas?

    Performing a restore of backup can erase some extra storage space, but...

    Download a library of 17 GB, the memory load to the Photos app, on a device with only 22 GB of free space will leave enough space free work, so the warning is OK - you have not enough free storage.

    Go to settings > general > storage & use iCloud > storage management and see if you can remove some unused documents and apps to create more free space. Otherwise, use an optimized library and full resolution images will be downloaded when you need to view or modify.

    -----

    -Restore your iDevice: https://support.apple.com/en-us/HT204184

    If your backup is in iTunes, make sure that it is encrypted.

  • Does anyone else have bad WiFi reception on 15 mid-2012 "MBP with screen high resolution?"

    Tried a new card from the airport, no difference. The WiFi reception is half, at best, of any other Mac. Get my wife of twice the reception of mid-2010. Like the hundreds of other Apple devices I have my mini iPhone and iPad Pro service.

    Is there something on the antennas in this screen? It's in this way that I bought it. Madding simply as a tech. At least I know if my laptop can connect to WiFi, just about anything can.

    I7 2.7 mid-2012 with 1 GB of VRAM and view high resolution.

    Hold down the Option key while you click on the wireless icon in the menu bar. This will display a number of important parameters on the performance of a Wi - Fi connection. a little, it will look like this:

    What values show you for Mode PHY and channel?

    What CISOS or the signal strength? How far from your router when you measure this?

    What tx rate or rate of transmit?

    very important and how many other networks do you see listed?

  • Is there an optimal resolution for iCloud sharing Photos

    Is there an optimal resolution for iCloud Photos sharing on computers, iPad and Apple TV?

    I want to scan photo album my grandparents to share with my friends and family. I scanned a few pages of test at 3200 x 2000 pixels. They have look great on my Mac and look great on an iPad also. I want to future proof them for 4 k and recent televisions.

    Is the size of 3200 x 2000 pixels too small, too large or OK?

    If you want to transfer photos using iCloud shared Albums, photo sharing, they will be transferred from smaller - the edge long will be at maximum 2048 pixels, unless they are panoramic.

    I would scan the photos to a pixel size you want to keep for reference, so you can print them in a format you like - 4000 x 3000 pixels or more, and when you share with iCloud, sharing photos they will be slightly reduced in any way.

  • shortcut to change the screen resolution

    Several times I clicked on a key while maintaining that the mouse and my screen suddenly zoom in very high resolution.

    It would help if I knew how to do to bring the resolution in system preferences.

    No one knows what the shortcut, it is that I accidentally click and how can I reverse the action

    Try holding down the option/Alt click on the green button at the top left.

  • Video resolution

    I told myself that my iPhone 5 s a better video resolution in landscape to portrait. Is it so? How much better? Thank you

    your 5s has more or less vertical horizontal resolution when trade you them, but the quality of the resolution is the same.

    iPhone 5 s - technical specifications

Maybe you are looking for

  • Changing ReplyTo

    Is in any way change what responded us to when editing and/or to delete and resubmit a recently posted response? I accidentally posted some answers 'to' the poster of the last who were in response to the question posted by the poster of the opening.

  • Equium M50: How Mat * une Région UJ - 841S free?

    Does anyone know how to make the carpet * a DVD-RAM UJ - 841S mounted on my portable region free? I was unable to find any firmware for this on the web. Seems stupid that a computer designed to be mobile has restrictions on DVD region. See you soon

  • My windows firewall is missing, how can I get another?

    I use essentials security on an old PC with XP - SP3, I was informed that "for some unknown reason windows cannot open the file of firewall", a search for 'Windows Firewall' pulled up an empty folder and when searching for "firewall" there are severa

  • B1 - A71 Bootloop and unable to factory reset

    HelloI've known the partition error trying to pass, so I applied the patch Acer. Since then, I've been unable to boot.I tried the hard reset and even get into recovery to do a factory reset. Whenever I'm in recovery and select the options the Acer lo

  • API of BOTTOM add user with the PIM Memo/address settings

    Hello I try to add a new Blackberry user if LOW API with the PIM Memo/address configuration. I know that using the BASUserAdminClient it is possible, so I think it would be possible to do the same thing by using web services. Have no idea about it?