Tap the spread with ListView

Hello

I have a ListView with a learn a more clickable label at the bottom right of the list item.  However, when I click on learning more label ListView consumes also to the touch...


ListView {
 listItemComponents: [

  ListItemComponent {

   Container {

      Label: {
        text: "Description"
      }
      Label: {         id: label2
         onTouch: {
            if (event.isUp()) {
                //Child Label do Something
                //Point A
            }
         }
      }
   }
  }
 ]

 onTriggered: {
     //Point B
     delegate.itemSelected(indexPath);
 }
}

My problem is although label2 is clicked the touch event is also handled by the ListView method onTriggered.  Does anyone know I can keep the ListView of the manipulation to the touch even when label2 manages to touch?

Thank you

Hello

You can check this code it will help for you. I think that this will solve your problem.

import bb.cascades 1.0

Page {
    Container {
        ListView {
            id: listview
            dataModel: GroupDataModel {
                grouping: ItemGrouping.None
            }
            listItemComponents: [
                ListItemComponent {
                    type: "item"
                    Container {
                        id: cont
                        preferredWidth: 500
                        preferredHeight: 100
                        background: Color.Gray
                        Label {
                            text: ListItemData.title
                        }
                        Label {
                            text: ListItemData.description
                            touchBehaviors: TouchBehavior {
                                eventReactions: TouchReaction {
                                    eventType: TouchType.Down
                                    phase: PropagationPhase.AtTarget
                                    response: TouchResponse.StartTracking
                                }
                            }
                            onTouch: {
                                if (event.propagationPhase == PropagationPhase.AtTarget) {
                                    if (event.isDown()) {
                                        console.log("label at target phase");
                                    }
                                }
                            }
                        }
                    }
                }
            ]
            onTriggered: {
                console.debug("listview triggered");
            }
            onCreationCompleted: {
                for (var i = 0; i < 5; i ++) listview.dataModel.insert({
                        "description": "description",
                        "title": "listitem"
                    });
            }
        }
    }
}

If you touch the first label it will trigger the display of the list and if you touch the second label does not trigger the ListView.

Tags: BlackBerry Developers

Similar Questions

  • I can't download Netflix. I can download/update of other applications.  I checked my limitations and my iOS is updated.  I tap on the little cloud to download, a circle flashes briefly then reappears the cloud with the arrow.  I rebooted and hard r

    I can't download Netflix. I can download/update of other applications.  I checked my limitations and my iOS is updated.  I tap on the little cloud to download, a circle flashes briefly then reappears the cloud with the arrow.  I rebooted and restarted hard.  Netflix working on other Apple devices.

    Try to download to your computer, iTunes then sync it to your device.

  • How to reset the default mail program? When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens.

    How to reset the default mail program? Got msn.com. Now, I went to q.com. When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens. Now, I get an error message: rundll32.exe - bad Image, followed by a message the the appklication or the DLL C:\Program FIles\MSN\MSNSharedFIles\MAILMAPI. DLL is not a valid Windows image. Please check against oyur installatiion diskette. I have msn unisnstalled.

    I can access my e-mail through hotmail msn, but no linger to subscribe to msn premium.

    original title: default e-mail program

    Hi PAULKRISSEL,

    This function is not supported natively in Windows. You may may find a third of the program that will change the default to q.com.

    WARNING:
    Microsoft provides no assurance or warranty, implied or otherwise and is not responsible for the download you receive from the sites of third parties or support related to the download or the downloaded technology. If you need assistance dealing with third party technology, please contact directly the manufacturer.

  • How we prevent scrollbars on spreads with an Image on the two Pages?

    Has anyone noticed that a spread with a large image (or graphic) stretching across two pages creates a vertical scrolling between two pages, whenever the iBook Viewer window size is adjusted? No idea how to prevent this? I guess I have to divide my images into two halves?

    In the EPUB export dialog box, select: "convert across landscape Page.

  • How can I get my sections with double pages to get started on the right side of the spread?

    (I use Indesign CC 2014, on Windows 7)

    My book has several sections.

    Each section is a separate file.

    All pages use 2up master pages.

    If all sections have an even number of pages, there is no problem. But some stops on a left page (side spread of the left page).

    Therefore, sections must begin their first page on the right side of the spread.

    I need to produce PDF files for production, and because of the fluctuation of the content, the amount of pages in each plank is random.

    What I have to indicate if each section begins on the left or right of the spread manually?

    Here is an example:

    pages.png

    Once the PDF file is released, I need the first page of the Section 2 to be automatically where is the pink rectangle.

    Instead, the last page of Section 1 and the first page of the Section 2 times use the left facing page of my pages master 2up.

    If the page has an odd number, that it will automatically switch to the correct position, if the property page shuffle in the side of the page is allowed and if it is possible to mix pages of the spread.

    In the book panel, you also have to set up you book numbering options.

  • What is the lock with the circle around it?

    What is the lock with the circle around him at the top of the screen?

    It indicates that the phone is locked in portrait mode. Swipe to the bottom of the screen to call the control center. Tap the corresponding icon there to allow rotation in fashion landscape.

  • Can not find the search engine on the iPad with iOS 9.2.1 3

    I upgraded my iPad more aged 3 to iOS 9.2.1 when I got my iPhone 6. Everything seems to work, except works more slowly and 'suspended' during the loading of applications. But I see now, there is no search icon as the first screen before the point of home at the bottom of the display screen. When I try to move from the middle of the screen, nothing happens, other than the bounce of the screen. I checked the manual to see if I was missing something: it says to do what I do. Advice?

    This form is not available for older models of iPad.

    Here are some suggested steps that I use to improve the performance of the older models of iPad iOS 9 ongoing.

    A disclaimer clause.

    I make no warranty, express or implied, that my own procedures return EACH older iPad to a usable state, running.

    Try all of the following conditions:

    Try to reset all the settings in the settings under general app and in the right column under restore.

    Try stories reset and delete/reset the caches in all web browsers you use.

    If you use Safari, these features may be in the application settings under Safari.

    Other browsers have their settings inside the running application itself.

    If your iPad has been activated for iCloud, in the application settings under iCloud, to the right, under iCloud Drive, type in iCloud drive and make sure that Safari is off to save data from Safari to iCloud by car.

    Also, under iCloud in the application settings, in iCloud Drive, turn the feature off saving for all other desired apps DO NOT the data automatically on iCloud drive.

    If you are using Safari is always causing issues.

    Try changing / using web browser third another, different.

    I do not use iOS Safari too much more because I found it cause me headaches on some Web sites, regularly, to visit.

    I commonly use another third party browser, perfect browser (there are others that can suit your style better web browsing, so look all first to see what third-party browser may work better for you) and I have never experience many questions that Safari was originally.

    In the settings app, under the Safari settings panel, tap the Panel, in the right window, turn off / disable Safari Suggestions.

    In the application settings tab general, right under the spotlight sesrch, try disable the search under the applications who really don't need a research, as some games, remote controls, apps that are really useless to be searched, etc., in order to reduce the list to Spotlight search.

    Try to turn the reduced movement.

    This is found in the application of settings in the general tab, in the left panel.

    In the right panel, look under accessibility, look to reduce the Motion and turn this feature "On".

    You should see a significant performance increase on all models of iPad 2, 3 and 4.

    In the application settings under the general tab, in the right column, search background App update and enable this setting to "off".

    If you are willing to do (I, personally, would not recommend this), some users have reported that turn off find my phone/iPad, in the settings app in iCloud, has improved the performance of iOS, although I have no how this feature could be the cause of such a slowdown in execution, unless it's a bug in the iOS which only affects some iPad users.

    Try an another hard reset of your iPad by simultaneously pressing buttons Home and sleep/wake button until your iPad goes to the dark and restarts with the Apple logo, then release the buttons.

    Good luck!

  • When taking picture with the light in the background with the camera back from my iPhone more than 6 s, there is a clear blue colour square (a bit like a reflection of the light) will appear.

    When taking picture with the light in the background with the camera back from my iPhone more than 6 s, there is a clear blue colour square (a bit like a reflection of the light) will appear.

    someone has an idea of what's going on?

    The blue square is the area of the camera is in point and exposure on.

    Tap on the area actually taking a picture of. For example, if you take a photo of someone int eh the room and the bottom is very light (or dark), tap on the face of the person to turn to that.

    See it-> http://iphonephotographyschool.com/how-to-use-iphones-camera-app/

  • Using a control of the chain with the Enter key, return * and * allowing repeated identical entry

    Hi all

    There must be a simple solution for this, but it's Friday afternoon, and my brain is not cooperating.

    I create a simple terminal through which a user can interact with an instrument. My question is about the only query string control. The button send and the Terminal Table are here for reference.

    Here is my desired behavior:

    (a) the user types a command in the field of the query, tape input or return. An event is triggered, and the request is sent to the instrument. The focus remains on the field in the query.

    (b) with any other action the interface user, the user types Enter or return again and again, by triggering an event that sends the request to the instrument every time Enter or return is typed. The focus remains on the field in the query.

    Here's what I have:

    This allows for one), but fails to b). The reason is, because the value of the field in the query has not changed, change value event does not fire when the user starts to spam keys enter or return. There is a way around this, as suggested by this post. Here is the solution in a few words:

    Instead of looking for the change in the value of the query command, the event fires for each key event to the bottom of the control and resembles a pressure of enter key or return. What attracts the user action, even if the content of the field of the request have not changed. The problem with this approach is that, when this event fires, I need to read the value of the query string order and send it to the instrument, but the value I get via the local Variable query is the old value, probably because the key down event fires before the value of query is saved as changed. Is there a way to programatically "enter" the contents of the control channel so it is recorded as a change in value, until I have the question via a local Variable? Is there a different way I should go about it? I'd rather not do anything that bound the input keys or return to this particular area, since I have many other UI elements that need these keys in my program.

    If not, is there a way to make the control of the fire 'Change of value' query string event when the user presses enter or return even if the value has not changed?

    Thank you for your comments!

    I thought about it.

    (1) control of the string (query) a value of update while typing.

    (2) save the key event down to the control of the chain. If the entry or return was pressed, send the state machine to the State 'send request '.

    (3) in the application 'send' State read control channel via the local Variable value.

    This is the desired behavior to allow the user repeatedly hit entry or return to regularly send a command, and the user can also type in a new order and send it by pressing enter or return.

    Thanks to all who have helped me this something to think about!

  • Need help to solve the problem with worm:win:32 / cridex.e

    Please help me to solve this problem worm:win:32 / cridex.e

    Hello

    Scan of Malware in Safe Mode with network.

    http://www.bleepingcomputer.com/tutorials/how-to-start-Windows-in-safe-mode/#Vista

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap the F8 key repeatedly until you are presented with the Boot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    Once in Safe Mode with network, download and run RKill.

    RKill does NOT remove the malware; It stops the Malware process that gives you a chance to remove it with your security programs.

    http://www.bleepingcomputer.com/download/rkill/

    Then, download, install, update and scan your system with the free version of Malwarebytes AntiMalware in Mode safe mode with networking:

    http://www.Malwarebytes.org/products/malwarebytes_free

    See you soon.

  • All I'm trying to open the files immediately through the "open with" window

    Here's what I think happened, I downloaded Irfanview and since all the files, I try to open the "open with" box comes up. Also missing from the sidebar. I deleted the Irfanview thought that would fix, but it didn't, so I tried to reload to see if I could find the problem but couldn't find that open with the program to use to bring it back.

    Hello

    See the following message to solve the problem of .exe if necessary once you are sure that the system is clean.

    Try Mode safe mode with networking - repeatedly, press F8 that you start.

    The best two methods allow scanners to run and/or AV.exe out of the way or removing.

    1.
    CTRL SHIFT ESC - task manager OR right click on the taskbar - task manager

    Process tab - complete the process on AV. EXE and continue with the uninstall Guide.

    If necessary use start - computer or Windows Explorer to navigate to

    C:\Program Malwarebytes Anti - Malware\mbam.exe or where it is installed - if
    necessary right click on the shortcut of Malwarebytes - Properties - tab - target line to see where it
    is installed.

    Right-click on it and rename it to ZZMbam.COM (or something different than now), then
    Double-click it and run it like this. You can rename it back later. Do the same with others
    programs as needed. Use this method for other necessary - DO NOT ASSUMER one
    program removes all or that there is no other malware.

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

    2.
    Another method is to use them:

    Use Process Explorer to "Suspend" the process will not stop

    Then use AutoRuns to delete the malicious program startup items.

    Now use UnLocker to delete the files in the malware.

    You may need to do a file at a time.

    Process Explorer - free
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    AutoRuns - free
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    UnLocker - free (do not install the adaware Ebay)
    http://www.Softpedia.com/get/system/system-miscellaneous/unlocker.shtml

    AV.exe

    ==============================================

    There are MANY varieties of these with many names, but all can be eliminated with the same methods:

    Win 7 Antispyware 2010 XP Internet Security 2010 and Vista Antivirus 2010 is rogue antivirus.
    scams to get you to pay for them while they have no advantage at all.

    How to remove all THE varieties of this malware - please read carefully the removal Instructions.
    http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

    RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
    in the regular when windows you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
    UnHackMe execution)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download
    here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
    It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
    How to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
    Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
    taken (such as the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

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

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

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

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • The hand with the red line icon and cursor freezes HP Compaq Presario CQ57-402SV

    I recently purchased (2 days) the laptop above in Greece. Sometimes no reason apparent, while using the touchpad, I get an error sound and a big hand icon with a red line through it and the cursor hangs. It cannot be erased by sleep, then reopened. Any help would be welcome. Thank you.

    most counsumer laptop touchpad leftside corner has for the touchpad toggle switch. If you tap on this area, it will be enable and disable the touchpad. Once disabled, you get the hand with the red line.

    Please avoid pressing on the area on the side right touchpad upper-left that turned on like a light switch.

  • Configure the email with incorrect information, please check.

    Original title: I recently bought a new computer with Windows 8, I've implemented with an incorrect email address!  Ho I change and stop getting invited to check the erroneous information that I have initially?

    I recently bought a new computer with Windows 8, I've implemented with an incorrect email address!  Ho I change and stop getting invited to check the erroneous information that I have initially?

    Hi Ian,

    Are you referring to Microsoft Account?

    If so, please try the steps below to change the main pseudonym of Microsoft Account.

    a. drag from the right edge of the screen, tap settings, and then tap Change PC settings.

    b. click/click on users on the left side.

    c. click/click on the link more online account settings at the top of the right side.

    d. If this computer or device is not a device of trust, then you will be asked to enter and submit a cryptogram sent to your phone or your secondary email address.

    in Internet Explorer or default web browser, click/click on the link Add or modify aliases under the pseudonyms of accounts.

    f. click / tap Rename under your (aka primary).

    g. click / tap on Rename Yes, my first alias.

    h. connect to your Microsoft account with your new email address and the password. You can close the web browser when you are finished.

    i. Select address (dot) use an existing as your primary alias email address, type in the email that you want to use and click / tap rename primary alias.

    j. check your email. You will receive a notification by e-mail to the youralternate email address in your profile Microsoft Account informing you that the change has taken place.

    k. click/click on OK.

    If the above steps fail, you can try to create a Local account and change it to Microsoft Account. After that, you can remove the Microsoft Account with incorrect e-mail address.

    Create a user account
    http://Windows.Microsoft.com/en-us/Windows-8/create-user-account

    To change an account Local to Microsoft Account, I suggest you try the following steps.

    a kick in the right edge of the screen, tap settings, and then tap Change PC settings.

    b in the left pane, tap or click on users.

    c tap or click switch to a Microsoft account and follow the instructions.

    See the article for more information.

    User accounts: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-8/user-accounts-frequently-asked-questions

    Hope this information helps. Answer the post with an up-to-date issue report to help you further.

  • Enter the BIOS with the F2 key at startup impossible

    I have the new Inspiron 7000 notebook PC series, the model number is 7737. I can't get into the bios Setup menu.
    I shut down the computer and then hit the power button and keep tapping the "F2" key, I see the text "setup F2" on the bottom right display and highlighted when I press the f2 key, but it continues to boot from the hard drive. I tried the F12 key and have the same problem.

    Now, I removed the hard drive and it will not even enter the bios menu.
    Am I missing something?

    I flashed the bios to version A04 and I still have the same problem when starting.

    I found this online and I am able to get into the bios with Windows 8.  Are there settings in the bios that can activate the startup shortcut key?

    To enter the configuration utility:

    1. Open the charm bar by pressing Windows-C
    2. Click settings
    3. Click change PC settings
    4. Click general
    5. Scroll down and click on Advanced Startup-> restart now
    6. Click problems
    7. Click on Advanced Options
    8. Click the UEFI firmware settings
    9. Click restart
  • How to start the numbering of the pages on the left side of the spread without changing the layout.

    I'm working on a catalog that must start with page "1" on the left side of the spread. Whenever I put it, the spread moves. I understand books should start on page 1 on the right, but it's what the client asked sadly. I come from a background of Quark where it is easy with no movement to change the beginning of the page numbering. How can I change the page numbering without disrupting the file?

    Thank you

    Serena

    1. Start a new document with page 2
    2. Select all the pages in the page Panel.
    3. In the context menu of the Panel page uncheck enable spreads Shuffle
    4. Double click on the small triangle at the top of page 2
    5. Change the numbering to start with page 1 now.

    That's all

Maybe you are looking for