ListView and the height of a CustomListItem

I have created a ListView with a CustomListItem. The code looks like the following:

ListView {
    dataModel: myDataModel
    listItemComponents: [
        ListItemComponent {
            type: "item"
            CustomListItem {
                 Container {
                    layout: StackLayout {}
                    TextArea {
                        text: ListItemData.data
                        multiline: true
                    }
                    TextArea {
                        text: ListItemData.data2
                        multiline: true
                    }
                }
            }
        }
    ]
}

I came across this problem recently. I suggest to create a personalized yourself list item and do not use the CustomListItem class, I think it is buggy in that regard.

Tags: BlackBerry Developers

Similar Questions

  • I have a box and the height of the header is to increase. How to do this?

    Mr President.

    My worm jdev is 12.1.3.0.

    I have a box and the height of the header is to increase. How to do this?

    query by example.png

    Concerning

    Tender,

    Do you have this still works?

    If not, jut removes type = "stretch".

    It should work.

    It should be something like

    
                                
                                
                                    
                                    
                                    
                                
                            
    

    Please let us know how you go.

    See you soon

    AJ

  • Im doing a sensitive web page and the height of my divs match, even if I did the math! No idea why?

    Im doing a sensitive web page and the height of my divs match, even if I did the math! No idea why? I have a rectangle of 100% with screen (1260px) with a square that represents 49% of the rectangle, with 2% margin on the right. Then the other half there is room who do the same size of the largest square with bottom margin and right, as appropriate. Yet looks like this in the browser! No idea why they do not align?Screen Shot 2014-10-31 at 14.48.00.png

    Don't worry thereon, as soon as I posted I worked out how to do it!... Typical! I had somehow reduced the padding inside the small images! Thanks nevertheless!

  • Problem with TextArea htmlText and the height/num lines

    I am trying to create a text box showing the code html and auto sizes the height so that there is no scroll bar. I got this works with the .text property, although when using.htmlText, the values returned are broadly. Assuming that 'field' is in the text box, I use the following coding:

    var nlines:int is field.mx_internal::getTextField (.numLines);.

    And then to get the height of each line (assuming that I is the index of the line):

    var lineHeight:int is field.mx_internal::getTextField () .getLineMetrics (i) .height;.

    When you do it with .text, it works fine. The presentation of html in the TextArea, my value "nLigne" (the number of rows in the TextArea) return very high values. It seems as if numlinesrequired returns the amount of lines that the TextArea component would be if she didn't analyze the HTML code.

    What can I do to get the real value of numlinesrequired when you use htmlText? Thank you

    I saw numlinesrequired wrong until after rendering.  We use a callLater to get after.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • float and the height of the div

    Hello Webwarriors,

    I'm working on a site: link

    Inside the 'mainContent' div a div 'imagebox' who has some pictures inside there. This will later become a gallery/slideshow thing.

    This imagebox is launched to the left.

    The right of the element comes from the text, where you see the topic 2, followed by the dummy text Lorem Ipsum now.

    I want that white background of this text, which is white, to be always the entire height of the imagebox div no matter what size it is.

    If white background should always extend until the footer, and if the text should become longer the footer should go down.

    What Miss me?

    EagerBob wrote:

    Hello Webwarriors,

    I'm working on a site: link

    Inside the 'mainContent' div a div 'imagebox' who has some pictures inside there. This will later become a gallery/slideshow thing.

    This imagebox is launched to the left.

    The right of the element comes from the text, where you see the topic 2, followed by the dummy text Lorem Ipsum now.

    I want that white background of this text, which is white, to be always the entire height of the imagebox div no matter what size it is.

    If white background should always extend until the footer, and if the text should become longer the footer should go down.

    What Miss me?

    Add overflow: hidden; the "mainContent" css selector and background color: #FC0; so you can see the effect (see below). Then change the background color for what is needed.

    {.twoColFixLtHdr #mainContent
    margin: 0 0 0 144px;
    overflow: hidden;
    background-color: #FC0;
    }

  • Implementation of the same width and the height of the Panel?

    Y at - it an easy way to set the width and height of an application < mx:Application > to the same width and height as the Panel <mx:Panel>. Whenever I try, I get scroll bars. It seems that there is a margin or padding built into Flex even if it is not listed in the css file. Any help or a point in the right direction would be very useful. Thank you!

    I think so:

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Graphics.getScreenWidth () and the height is obsolete

    I use a recipe of screen scrolling and methods

    Graphics. getScreenWidth () and Graphics.getScreenHeight are deprecated.  Does anyone know an updated version of these methods?

    Thank you

    Scientist

    net.rim.device.api.system.Display.getWidth () and getHeight() are the recommended way to do it now.

    Note that the view class requires the signature - when I needed this information and wanted to quickly test something at home, I used the obsolete (but not requiring not signature) graphics... methods and then replaced by display... methods to work.

  • Setting the width and the height of the elements (texts, images), with custom percentages associated with the width of the browser

    Dear Muse-Geeks,

    I'm really pleased with the ability and especially the ease use of Muse. But I couldn't imagine that the width of a text box, image, the box cannot be defined as a percentage of the width of the browser.

    But now after some research on the web I really seems the only option is the 100% browser width.

    I just missed something to set a value in percentage (vertical/horizontal) size?

    Concerning

    André

    Hi Woods

    When you talk about the size of objects as a % of the browser, I think you are talking about the responsiveness of the site. If Yes, then it is not possible to create sensitive sites in Muse at the moment. But yes, you can set the width to 100% for some items and a slide show full-screen only.

    Kind regards

    Aish

  • Request for information on the height and width of display devices

    I want to know the width of screen blackberry devices and the height from 4.5 os. I want the list of devices with their height and width of the screen. Where can I find them?

    Concerning

    Rakesh Shankar.P

    You can check this one also, more details

    http://docs.BlackBerry.com/en/developers/deliverables/11886/BP_controlling_resource_size_619260_11.j...

  • How to increase the height of the bar system progress?

    Hello

    I want just to increase the height of the progress bar for windows system and is not able to customize. It is having the ability to adjust the width and the height. For example, the height of the progress bar of system used in install labview is large compared to the control that is in the control labview palette.

    I want that the progress bar as in the illustration below

    Thank you & best regards

    Samuel J

    System engineer

    CAPTRONIC systems

    Bangalore

    You cannot change the height of the horizontal blade in the system palette. You can use one of the modern palette that Mike has suggested, or you can use ActiveX ProgressBar or ProgressBar .NET if you run Windows. If you want to search for the latter, the forum as there are has examples.

  • Scrolling of the ListView in the end does not work

    Hi, when creating completed page, I add items to listview and scrolltoposition (end, smooth) but it does not work. How can I auto-scroll down entering the page?

    It's almost a year, but it was the first match in google for my problem.

    I solved it by changing the orientation of my layout of the ListView and the sort order of my model.

    ListView {
        layout: StackListLayout {
            orientation: LayoutOrientation.BottomToTop
        }
    }
    
  • Reduce the height of PicturScrollField

    Hi all

    I'm working on an application where I need to work on PicturescrollField.

    But the size and the height of the scroll box is very big, it fits almost the half of the screen if you're targeted for 320 X 240

    Please let me know how I can reduce the height of picturescrollfield?

    Thanks in advance...

    Kind regards

    Laxmikant

    When you create it field picturescroll moves to the size you want:

    _pictureScrollField = new PictureScrollField (width, height)

    I hope this helps.

  • Resize the height of PageItem only

    Just a quick. I know how to resize a PageItem using the resize method when taking a picture of the width and the height...

    pageItem.resize(CoordinateSpaces.pasteboardCoordinates, AnchorPoint.centerAnchor, ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, [10, 10]);
    

    But how I resize in one direction. I looked at the documentation, but it is very confusing.

    values: Data Type: table of varies

    The width and height values. Legal dimensions specifications: {x, y [, coordinate space]}, {x, resize constraint [, coordinate space]}, or {resize constraint, y [, coordinate space]}; where x and y are real numbers and the coordinate space is used to determine _only_ the unit of length for x and y; coordinate space is ignored for the 'current time dimensions' resizing method). Can accept: table of Reals, enumerators ResizeConstraints or enumerators CoordinateSpaces.

    Hi McShaman,

    This should do the job:

    pageItem.resize(
        CoordinateSpaces.pasteboardCoordinates,
        AnchorPoint.centerAnchor,
        ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,
        [ResizeConstraints.KEEP_CURRENT_VALUE, 10]
        );
    

    Note, however, that your code has exceptionally cardboard space, which means that you resize the framework encompassing focus on the editing table. Ensure that you really want this. (If your pageItem has a rotation applied compared to the editing table, for example, a rectangular shape will evolve into a parallelogram, etc..)

    Usually, what you want is to resize the box in its own space (inside), that is, CoordinateSpaces.innerCoordinates.

    @

    + Marc

  • How width measured for the forms and the stroke is converted?

    How is the width and the height calculated in the Panel processing for an object? Should I use an average? An example can be seen in the first picture. The lines are not a uniform width.

    In addition, how are traits converted from pts to pxls? For example, if I make one related 2.3 pt, when I expand the subject of the width of the transformation Panel will say 2.3px; However, I thought that the point conversion pixel (even for a screen resolution of 72 dpi) was different. An example can be seen in the last two images, where a line was made with a width of line specified and then expanded.

    Screen Shot 2013-09-03 at 3.33.45 PM.png

    Screen Shot 2013-09-03 at 3.35.58 PM.pngScreen Shot 2013-09-03 at 3.36.28 PM.png

    Ah, dasikins.

    For an extended object as described and illustrated, I think that you can get a medium width.

    Approximate simple, which is near when you have a relatively long object, divide the area (A) of the length (L) the path trajectory and multiply by two (2 * A/L).

    For most of the versions (up to CS4 and CS6), you can use the free Patharea filter (which provides you with an area and length available here)

    http://www.Telegraphics.com.au/SW/browse/filters

    and I think that the latest versions have the information in a range of information.

  • I adjusted the height of the message pane, and now it will not pass (and contains text that overlap in the folders pane!)

    I adjusted the height of the message pane, and now it will not move. Overlaps the text in the files pane, and it is making it really hard see my messages correctly. I tried to uninstall Thunderbird, and reinstall, but the problem is still there. Help!

    Have you tried restarting your computer?

Maybe you are looking for