ListClass using height CustomCellRenderer question

I am trying to create a list of items using qnx.ui.listClasses.List. I have a customCelleRenderer that extends the CellRenderer class. I have a background image with the height of 110 pixels. Currently I have 4 items in the list. When I run my application, all four items appear but when I trace the CustomCellRenderer height, it shows that 47 pixels.

What is the minimum height of the CellRenderer class? How can I do to make my every cell size is 110 pixels?

I'm new to qnx components. Help, please. Thank you.

key kminkeller,

Lists and cell renderers are difficult to crack, but we were trying to understand. From the looks of us must apply the height of the list via the List.rowHeight property object in the main class (or who ever has class introduce you the List object). by doing this you would change the heights of all the cells. the draw however back is waterver height you set it to will live up to all the cells. but since it will not be a problem for you it works.

Here is more information about the property:

http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/UI/listclasses/list.html#RowHeight

hope that helps. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Survey using multiple-choice questions

    Hello

    I'm trying to get the answer to a poll, I am using multiple choice questions and each answer numbering as well as cpQuizInfoAnswerChoice = a number. I wanto then add this number to get a total score. The crash of the idea that dependign on the score of hat they get to take them to another slide.

    I have taken a quick glance at this guide here: http://blog.lilybiri.com/graded-survey

    It helped me a little, but what I need to do, is add the numbesr of a series of 10 questions.

    So if the user gets a score of 1, then 3, then 3, then 2, and so I would add the score for questions.

    Can someone please help, sorry I'm new to advanced actions, and I'm not sure what I have to write to make it work.

    Thanks a lot for any help

    I use version 6 of captivate.

    It makes no sense to add 0 to the first statement, you do not v_dummy at all, replace the first two statements by one:

    Expression v_teacher = v_teacher + cpQuizInfoAnswerChoice

    Bit easier...

  • Use of licenses/Questions

    Hello

    I am interested in Adobe Stock, however, I'm still not quite clear on the standard license rights and restrictions of use (which I read several times).

    If someone could give me concrete answers to the following questions, I would be very happy:

    1. If I acquire the standard of a stock image license for myselfam I allowed to use the same image of stock for multiple projects? Say, use a paper structure photo on different digital drawings of mine.

    Note: I understand that I must get another license, if I had to use the same image of stock for a client.

    2. a link (to the Adobe Stock page) for a stock image used on a Web site strictly necessarily in copyright information or is "NameOfAuthor ©" considered sufficient? What is the best practice?

    3. copyright information pass under the image, or should it be written on the image, as in being a part of the image?

    4. assuming that the copyright notice can be put under the image or text separated in front of her, if I use an image of stock in a post on a Web site (like a header image, for example) with the relevant information of the copyright on this same page -

    This same (possibly cropped) image can be used as thumbnail for the social media 'actions' without distinct mentions of copyright on the posts 'shared '?


    5. If I use an image - composed of pieces of multiple images of stock of different authors - do I put separate copyright information for each image used on the page/image?

    Is it possible to 'group' copyright or - if information is not - how best to do this?

    6. I understand Adobe Stock don't offer no licenses at the present time, however, is it OK if I buy an extended license on Fotolia for an Adobe Stock image I already have a license and already "used"?

    I will do my best to answer all your questions. You need to refer to the license agreement for the definitive and final word however.

    1. Yes, as long as the projects are for your personal use, that's OK. If you own several businesses and intend to use the same image for each company, you need a separate license.

    2. a photo credit is required when you use an image for editorial use, like a newspaper or magazine article, or for social media. Use of the web in general does not require a photo credit and a link is no longer needed.

    3. If you use the image in social media, the appropriations must be typed directly on the image at a visible place. If you use the image for an editorial article then having the credit adjacent to the image is sufficient.

    4. you can link to a page on the social media without adding extra credit. If, however, you want to download the image directly on social media as a reference to a link, you need to add the credit on the image.

    5. If the composite is for social media use, so, Yes, a credit for each contributor is required.

    6. Yes, if you use an image from Adobe Stock in a way that is not consistent with the standard license agreement, you must immediately delete the image or license extended to Fotolia assuming that the extended license allows your use.

    I hope this helps.

    -Mat Hayward

  • Height CSS question

    I have a 90% CSS height in my div container that doesn't seem to work.  Width seems to work very well, but the appeal of height off does not respond.  I'm just getting started on this subject, and I don't know what I'm missing.  Another set of eyes would be useful.

    Thanks in advance

    http://gtworkspace.com/css_height/

    Add to your css styles and see what happens:

    {html, body
    height: 100%;
    }

  • consistent extract using rows (simple question)

    could someone answer the question:

    When you use first_rows optimization apose to all_rows

    ... in general why allways I see more consistent gets?

    Any help appriciated

    Are you perhaps using FIRST_ROWS but then fetch all lines?

  • Using Skins Flash - questions?

    Just improved RoboInfo 5 to RoboHelp 7 (long)

    I am plans to use a skin in Flash, but I'm just curious to know if there are problems in doing this.

    Is it possible to add a new menu button if I use a Flash skin (I have experience in the use of Flash, but don't think that it is possible to change the source code so I could create a new menu button as I did previously with html).

    Is using a skin Flash slow performance at all? I use a Flash skin just to get some cool animations so I know that this slowdown in application and affects the user experience.

    With the help of a Flash skin that I should be aware any other question?

    Hi hughbetcha

    There is no editor of FlashHelp skins there is in WebHelp. So add a button is normally right out, unless you have some Flash skills. But you said that you don't actually have Flash skills. So, you will be interested in the Skins Development Kit. Don't worry, this isn't a separate thing, you need to buy. It's really a collection of documents and source files to use. You should find it at the following location:

    C:\Program Files\Adobe\Adobe RoboHelp 7\FlashHelp SDK

    See you soon... Rick

  • automate the smartlist using contour utility questions

    Hello

    IAM want to automate the smartlist using .csv for Member of the entity dimension using contour utility

    Create a smart list called "alnasser' member of the dimension entity E10134

    alnesser smarlist contains a) price b) sale c) prefixing sale d) d afterpricing) test factor has two child

    IAM not not see members of the smart list under alnasser

    file source as follows below

    Entity, Parent, Data Storage, Description, Data Type, Base, Plan Type (Plan1), aggregation (Plan1), Smart List ALNASSER currency
    E10134, store, ALNASSER, unspecified, USD, 1, +, ALNASSER, sales

    his show a column name or header not recognized

    How to give the source smart list with the entity dimension and where I did the source of error and give to testfactor

    I guess that the error with the header name alnasser smartlist

    Sreekumar.H

    Hello

    Could you just add the values for the smart list in the planning, once they are in place, you don't have to set them up again.
    If you can't then I would use something like LCM to create an XML with values inside and then import it into.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Validation for a used refurbished Tower question

    • I bought a renovated Tower and my boot screen continues to days countdown to validate windows. I can't validate because it refuses to accept the # "s on the back. He told me that I have to buy a windows 169.00. It has everything, more than IE8 and 7. I have my Time Warner Cable internet source. What should I do? What is a counterfeit windows?

    Check to make sure that the letters and number are correct (letter B can be confused with the number 8, number 0 for the letter O, letter Q, etc.).

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • L2l VPN using Dynamic IP - question

    Dear all,

    I have several sites with dynamic IP address.

    HO, I have a cisco router with dynamic IP, in which internet VPN and terminated on SAA configured port forwarding.

    I have 40 branches will be all dynamic ip. all L2L tunnels are running.

    My problem is that of creates a branch to HO communication is perfect but to HO, I'm not able to access the ants of branch resources.

    could someone help me solve this problem... Config is attached.

    AHA!

    I understand a little better Setup.

    It seems that your routers are destination NAT, so all the tunnels seem to come from the subnet "172.16.40.0/23."

    And indeed your hypothesis is correct problem seems to be related to the lack of correct roads pointing outward. (at least it seems that Yes for now).

    However, reverse route injection should take care of it.

    Speaking of which I noticed your field of tunnels on

    Crypto dynamic-map alfa and not the default system.

    Please add "crypto dynamic-map alfa 1 set reverse" and restart one of the tunnels (do not speak it, simply identify isakmp and ipsec for this session).

    We'll see from there.

    Marcin

  • A consolidated using nested decode question

    Hi Experts,

    I have a requiement as I am trying to solve by nested to decode, but it gives bad result for certain values. I will be grateful for pointers on it. Here's the whole upward for a test case:

    create table test (emp_id varchar2 (20), name varchar2 (20), e-mail varchar2 (100));

    insert into test values ('1 ', 'a',' [email protected]');

    insert into test values ('2 ', null,' [email protected]');

    Insert test values ('3 ', null, null);

    commit;

    The requirement is to print the name if it is not null. If it is null then print email. If the email is also null then print emp_id.

    Here is what I tried:

    select decode(decode(name,null,nvl(email,'xxx')),'xxx',emp_id) from test where emp_id='3';
    
    

    But this gives a null value for emp_id ' 2 'and ' 1'. I don't know where I am going wrong. Please suggest.

    Thank you

    Hello

    If you want to know why the phrase DECODE you posted does not work, it helps to format your code.

    Select decode (decoding (name

    null

    nvl (email, "xxx")

    )

    , "xxx."

    emp_id

    )

    of the test

    where emp_id = '3'

    ;

    This makes it easy to see that the outward expression of DECODE has only 3 arguments.  This means that it will always return NULL or 3rd argument (emp_id).  Clearly, this isn't what you want: you want an expression that sometimes will return name and email, sometimes too.

    As mentioned above, COALESCE seems to be the best way to do what you want.

    Nested NVLs would be another (but of course lower) way.

    CASE is also better than DECODE.

    The following query shows how to get the same results in all these ways:

    SELECT NVL (name

    NVL (e-mail

    emp_id

    )

    )            AS n

    CASE

    WHEN the name IS NOT NULL, THEN name

    WHEN an email IS NOT NULL THEN an email

    Emp_id ELSE

    END AS c

    DECODE (name,

    , NULL, DECODE (e-mail

    NULL, emp_id

    E-mail

    )

    name

    ) AS d

    OF the test

    ;

    Again, I recommend COALESCE for this work.

  • Samsung S3 using Photoshop touch questions?

    Just install the application, could not load the images in the library.

    Have you tried to reboot the device?

  • How to stop the red symbols to appear when I use the question mark, the apostrophe and slash keys. This only happens in my e-mail program.

    How to stop the red symbol to appear when I use the key question mark in my e-mail program.

    HI Julie Delany.

    1. for how long are you facing this problem?

    2. is there any changes made prior to this issue?

    3. may I know what mail client do you use?

    Disable the function key (lock) and then check

  • Question of CSS - height of the external DIV layout

    If all goes well, it is a quick - in the past, I've used CSS for the layout main page, but always used tables in a DIV. But I'll try to be good and the DIVs used it too.

    In any case-, I have here a basic example:

    http://www.learners-Guide.co.UK/lessons/cockpit-drill/layout.php

    With the rank in the main contained Division in two columns, using:

    #outerWrapper #contentWrapper #content #row_one {}

    Width: 580px;

    border: 2px solid #333;

    background-color: #99FF99;

    padding: 10px;

    }

    #outerWrapper #contentWrapper #content #row_one #row_one_left {}

    Width: 288px;

    height: auto;

    padding: 0px;

    float: left;

    margin: 0 0 0 0; / * Sets the properties of margin for an element using the shorthand notation (up, right, down, left) * /.

    }

    #outerWrapper #contentWrapper #content #row_one #row_one_right {}

    Width: 288px;

    height: auto;

    padding: 0px;

    float: right;

    margin: 0 0 0 0; / * Sets the properties of margin for an element using the shorthand notation (up, right, down, left) * /.

    }

    The problem is that the #row_one_left and the #row_one_right columns out of the container DIV. #row_one

    How I would expand container DIV to contain the columns? I can do so by specifying a height of the #row_one DIV, but guess it's poor form and would be produced depending on the results screen / resolution / browser etc.

    I thought that maybe using height: auto; but no joy with either.

    I assume that it should be possible, as it may seem a pretty basic provision requiement.

    Thank you.

    You must use a style that forces this div to clear floats (as floats are removed from circulation, containing elements of law as if they aren't even there).  To do this, something like "overflow: hidden" works beautifully.  So to remove the styles from height: auto (which is the default anyway) and change sound.

    #outerWrapper #contentWrapper #content #row_one {}

    Width: 580px;

    border: 2px solid #333;

    background-color: #99FF99;

    padding: 10px;

    }

    on this subject.

    #outerWrapper #contentWrapper #content #row_one {}

    Width: 580px;

    border: 2px solid #333;

    background-color: #99FF99;

    padding: 10px;

    overflow: hidden;

    }

  • Noob question on uneven with sides horizontal arrangement using CSS containers

    I can easily make layouts css horizontal with container into the container when the parent container is a strip of equal height to the Summit on the attached example. I wonder how to provision low scratched on the example attached, which is the color of background with different heights. Usually, the bottom of the container in the middle is an image file and the sides are thoroughly with the image of html colors.

    I don't know if there are web sites with this provision, but if there I'd love to check out them and if there is a tutorial would be great.

    I hope I make sense

    differentHeightSides.jpg

    When the text size is increased in browsers, text will reverse the fixed size containers. Use height min instead of the height.

    I think that the best you can do is create two divisions side by side and add a margin-top to the container on the left side.  See my example built with not only a CSS grid system:

    http://ALT-Web.com/notjustagrid/uneven-containers.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • How focus a JavaFX Group properly and set the pivot (reverse) by using translations in 3D space?

    Description:

    I m referring to the Oracle tutorial http://docs.Oracle.com/JavaFX/2/transformations/jfxpub-transformations.htm using the transformations.zip source code, which is available for download on this page. I Don t understand why they Center the xylophone in space 3D like this and why they calculate the pivot (reverse) using translations. So they are creating a large number of groups, including rectangles, representing the xylophone, in addition to finally to a group called "cam".    

    class Cam extends Group {     
         Translate t  = new Translate();     
         Translate p  = new Translate();     
         Translate ip = new Translate();     
         Rotate rx = new Rotate();     
         { rx.setAxis(Rotate.X_AXIS); }     
         Rotate ry = new Rotate();     
         { ry.setAxis(Rotate.Y_AXIS); }     
         Rotate rz = new Rotate();     
         { rz.setAxis(Rotate.Z_AXIS); }     
         Scale s = new Scale();     
         public Cam() { 
              super(); getTransforms().addAll(t, p, rx, rz, ry, s, ip); 
         }     
    }    
    
    final Cam camOffset = new Cam();    
    final Cam cam = new Cam();    
    ...    
    camOffset.getChildren().add(cam);    
    ...    
    final Scene scene = new Scene(camOffset, 800, 600, true);    
    ... 
    

    The Group "cam" is added to another group called "camOffset", which is added to the 'scene' as root the node.

    Until there , everything is understandable to me, but there is a method, called "frameCam (.)" which calls 4 other methods: ""

    public void setCamOffset(final Cam camOffset, final Scene scene) {         
         double width = scene.getWidth();         
         double height = scene.getHeight();         
         camOffset.t.setX(width/2.0);         
         camOffset.t.setY(height/2.0);     
    }    
    
    //=========================================================================    
    // setCamScale    
    //=========================================================================    
    
    public void setCamScale(final Cam cam, final Scene scene) {        
         final Bounds bounds = cam.getBoundsInLocal();         
         final double pivotX = bounds.getMinX() + bounds.getWidth()/2;         
         final double pivotY = bounds.getMinY() + bounds.getHeight()/2;         
         final double pivotZ = bounds.getMinZ() + bounds.getDepth()/2;         
         double width = scene.getWidth();         
         double height = scene.getHeight();         
         double scaleFactor = 1.0;         
         double scaleFactorY = 1.0;         
         double scaleFactorX = 1.0;         
    if (bounds.getWidth() > 0.0001) {            
         scaleFactorX = width / bounds.getWidth(); // / 2.0;        
    }        
    if (bounds.getHeight() > 0.0001) {            
         scaleFactorY = height / bounds.getHeight(); //  / 1.5;         
    }        
    if (scaleFactorX > scaleFactorY) {            
         scaleFactor = scaleFactorY;         
    } else {            
         scaleFactor = scaleFactorX;         
    }        
         cam.s.setX(scaleFactor);         
         cam.s.setY(scaleFactor);         
         cam.s.setZ(scaleFactor);     
    }    
    
    //=========================================================================    
    // setCamPivot    
    //=========================================================================    
    
    public void setCamPivot(final Cam cam) {        
         final Bounds bounds = cam.getBoundsInLocal();         
         final double pivotX = bounds.getMinX() + bounds.getWidth()/2;         
         final double pivotY = bounds.getMinY() + bounds.getHeight()/2;        
        final double pivotZ = bounds.getMinZ() + bounds.getDepth()/2;         
    
    //*1*        
         cam.p.setX(pivotX);         
         cam.p.setY(pivotY);         
         cam.p.setZ(pivotZ);         
    //*1*        
    
    //*2*        
         cam.ip.setX(-pivotX);         
         cam.ip.setY(-pivotY);         
         cam.ip.setZ(-pivotZ);         
    //*2*     }    
    
    //=========================================================================    
    // setCamTranslate    
    //=========================================================================    
    
    public void setCamTranslate(final Cam cam) {        
         final Bounds bounds = cam.getBoundsInLocal();         
         final double pivotX = bounds.getMinX() + bounds.getWidth()/2;         
         final double pivotY = bounds.getMinY() + bounds.getHeight()/2;         
         cam.t.setX(-pivotX);         
         cam.t.setY(-pivotY);     
    } 
    

    If the method ' setCamScale (...) 'is understandable,' setCamOffset (...) ' puts the root node ('camOffset') in the center of the screen, but I Don t understand the 2 following methods at all. Of course, the child ("cam") is not centered, by putting just the root node ('camOffset') in the center of the screen, but how they focus the xylophone / "cam" and set the pivot, using translations:

    Questions:

    1. Why they use 3 different translations (', 'ip', 'p')?
    2. Referring to ' setCamPivot (...) ': Why they are the first translation of 'cam.p' to "pivotX", 'pivotY' and 'pivotZ' and then 'cam.ip' to '-pivotX', '-pivotY' and '-pivotZ' (marked in the source code with * 1 * and * 2 *)? Should he not just put the Group at his position, where it has been positioned before, as if the method has never been called? That would be my guess, because I expect that an object is placed in the same position as before, if I first move with the values X, Y, Z and then return with the same values - X, - Y, - Z in the opposite direction.
    3. Even with the method ' setCamTranslate (...) ' ': Why use another translation "cam.t", moving the Group ("cam") with the same values "-pivotX', '-pivotY' (and not '-pivotZ'), which they used in the"setCamPivot (...) method `?

    Annotations:

    Of course it works, the xylophone is located in the center of the screen and could turn perfectly, without change of rotation point / pivot point, but I Don t understand how they did it. I read everything about layoutBound, boundsInLocal, boundsInParent, blogs about page layout and page layout goes into javaFX https://blogs.oracle.com/jfxprg/entry/the_peculiarities_of_javafx_layout and http://amyfowlersblog.wordpress.com/2011/06/02/javafx2-0-layout-a-class-tour/ and finally a large number of questions to stackoverflow, but I still Don t understand the meaning behind the methods stated.

    Before the call of ' frameCam (...) ', they ask:

    double halfSceneWidth = 375;  // scene.getWidth()/2.0;     
    double halfSceneHeight = 275;  // scene.getHeight()/2.0;    
    cam.p.setX(halfSceneWidth);    
    cam.ip.setX(-halfSceneWidth);    
    cam.p.setY(halfSceneHeight);    
    cam.ip.setY(-halfSceneHeight); 
    

    I deleted these lines, because it doesn't change anything.

    The base in place, is that there are three defined different rotations, one around each axis. Of course, these could be combined into a single rotation, but doing so would make the geometry in the mouse dragging very complex managers. As it is, the degree of rotation around each axis can be calculated and changed independently.

    In general, the rotations are defined by an angle, an axis and a (pivot) point. The axis is a 3D vector and goes through the pivot point; the rotation is around this axis through that point.

    In the configuration in the example, the pivot of each of the individual rotations is set to the default (0,0,0). Because we really want the rotation to be around the center of the group, not the original, the Group translates first point appropriate pivot (ip), the rotations are applied then (around (0,0,0) after translation by ip), then the group is reflected in its location of origin (p). These operations are not commutative, yes show ip, then the rotation, then p is not the same as when you run ip, then p, then the rotation (in the second, ip and p would cancel and rotation would be about (0,0,0) instead of around the Center).

    For good measure, there is a scale, that is also applied after ip (so that scaling occurs from the Center, not the original) and then a final translation.

    The final effect is that there is a lot of transformations that can be controlled independently. There is a scale (s), a rotation about each axis (rx, ry, rz), and a translation (t). The p in translations and its inverse ip are just "housekeeping" to ensure that rotation and scaling are done from the center of the screen, instead of (0,0,0).

    So:

    1. Why they use 3 different translations (', 'ip', 'p')?

    p and ip are translations for the rotation and scaling are done from the Center and not to the origin. t is a general translation, the user sees.

    Referring to ' setCamPivot (...) ': Why they are the first translation of 'cam.p' to "pivotX", 'pivotY' and 'pivotZ' and then 'cam.ip' to '-pivotX', '-pivotY' and '-pivotZ' (marked in the source code with * 1 * and * 2 *)? Should he not just put the Group at his position, where it has been positioned before, as if the method has never been called?

    He puts the group to its original position, but other changes are between p and ip. These transformations behave differently (in a planned way) because the group is translated when they are applied.

    Even with the method ' setCamTranslate (...) ' ': Why use another translation "cam.t", moving the Group ("cam") with the same values "-pivotX', '-pivotY' (and not '-pivotZ'), which they used in the"setCamPivot (...) method `?

    The t values are changed in the mouse Manager (with alt-middle mouse button-drag, which I can't test actually using my trackpad...). As you have noted, the effect of p and IP translation cancel out, so we end up with t, which can be changed by the user. They could have combined t and p a single transformation, but updated since the mouse Manager would have been more delicate, and the intent of the code would be less clear.

Maybe you are looking for