Change from ImageView imageSource sequentially when touch?

Hi all

I have an ImageView and two images. The default imageSource property is the first image. When I touch on ImageView, I want to change the imageSource in the second picture. And if I touch once again, it will be changed to the first image.

How can I do this with QML? Can I do something similar with ImageButton?

Thank you

Add a property to your image display

something like bool isFirstImage

and Touch... If (isFirstImage) {"isFirstImage = false; imageSource = '...} 2.png"} else {isFirstImage = true; imageSource = '... "1.png"} "

think you have the idea

You can also use a ToggleButton, ActionItem control...

Take a look at samples - there are many examples where the images are changed.

the example of Cascades Cookbook also makes this

Tags: BlackBerry Developers

Similar Questions

  • Hour system does not change from other time zones when autoamtically adjusted for DST

    I have the same problem. My House in time (UK) automatically adjusts for DST, but the other times around the world are not. I tried the fix above & it said it had found & solved the problem but nothing has changed.

    Suggestions more please?

    Hello Adrian Thurley.

    a. Click Start, type cmd in the search box, select command prompt, right click and run as administrator.

    b. at the command prompt, type:

    ' w32tm/Debug /disable' and press 'Enter' (net stop w32time gave an error 5 access denied response!)

    Type 'w32tm /unregister' and press 'Enter' (without using the first command, the second did not!)

    You should get the answer "W32Time successfully saved."

    c. Type "w32tm /register" and press "Enter."

    You should get the answer "W32Time successfully registered.

    d. type 'net start w32time' and press 'Enter '.

    Thank you
    Irfan H, Engineer Support Microsoft Answers.

  • Screen fade slowly when changing from one page to the other

    Original title: melted screen

    Why my not to screen a slow fade when changing from one page to another.  Did not until recently.

    Hello

    1. what operating system is installed on your computer?

    2 are. what page you referring?

    3. when exactly are you facing this problem?

    4. have you made changes on the computer before this problem?

    If you use the Windows 7 operating system, you can follow the methods.

    Method 1:

    You can see the issue in the clean boot state. Read the following article.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: once you are done with the boot, please follow step 7 of article to reset your computer to normal startup.

    Method 2:

    I suggest you run the calibration of the colors of the display on the computer and check if it works.

    Calibrate your screen

    http://Windows.Microsoft.com/en-us/Windows7/calibrate-your-display

    Method 3:

    You can run the troubleshooter of display quality and check.

    Open the troubleshooter of display quality

    http://Windows.Microsoft.com/en-us/Windows7/open-the-display-quality-Troubleshooter

    Method 4:

    You can try to update the display adapter driver by visiting the manufacturer's Web site to download and install the latest driver package.

    For more information: update a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Update drivers: recommended links
    http://Windows.Microsoft.com/en-us/Windows7/update-drivers-recommended-links

    It will be useful.

  • How can I make the text in all the boxes down following objects when the text box is changed from 1 to 2 lines?

    Hi people Muse.

    I'm faced with a problem of text box:

    At the bottom of my page, I have the title "ACTING ERMUTIGEN ZUM". Without any manual adjustment, I was happy to see that the text box pushes down the following objects as soon as the title Exchange of 1 to 2 lines. Point out clearly: I didn t add any point to stop or change any additional settings to achieve this, it just happened automatically and that's exactly what I want to happen.

    To my confusion, I can´t find a way to apply this behavior for the second title 'COURAGE OBSERVES UND LOSEN. It s on the same page. When I drag the breakpoint controller in the design-time view from the left to the breakpoint 900 pxor do it in the browser after export of the site, the title changes from 1 to 2 lines, as assumed, , but then the next Don t objects react and stay in the same place they stay when the title takes only 1 line.

    You will find the site on businesscatalyst:

    WILLKOMMEN

    I´d appreciates your support very well. I m sure it s not a big problem, but after an hour of re - try and control and do not receive a millimeter in advance, I thought, he could be one of these 'Don t worry - here comes the solution'- Muse hero there, read this. What you...? ;-)

    Thank you in advance.

    Moritz

    –––

    1st Title: everything works fine...

    Bildschirmfoto 2016-03-15 um 17.24.43.png

    Bildschirmfoto 2016-03-15 um 17.25.25.png

    –––

    2nd title: the 1200 px BP do everything ready...

    Bildschirmfoto 2016-03-15 um 17.26.13.png

    .. .but as I drag the marker of BP to the left just as I did with the title 1, the 2nd title doesn´t lower content:

    Bildschirmfoto 2016-03-15 um 17.26.30.png

    If you set the text block "ZUM ACTING... "sensitive width via the resizing control, rather than"Stretch to the width of the browser", which will provide the behavior you're looking for.

    We will study the design compared to the difference of the browser view. It seems that how items are grouped in resizing behavior is different in the case of elements with parameters width Resize mixed, in the mode of creation of the Muse and the browser.

  • When you change an item type only display in hidden element its value changes from any value in value null. Why?


    Dear reading

    When to change a display one item type in the hidden element its value changes from null value any value . Why?

    I would like to use the result of the query in the hidden item, as well as to display it in report footer.

    shortly the displayed element can read footer bu area hidden point cannot be viewved in the footer box. Why?

    footer

    & P11_DISPLAY_ONLY_ITEM.

    footer

    & P11_HIDDEN_ITEM.  )

    (site of apex.oracle.com Application Express 4.2.5.00.08)

    concerning

    Enformatik wrote:

    in the part of the properties point setting its source type as query retune unique value;

    but when you set its value to the calculation (before header) it works correctly.

    It is the expected behavior. The values defined in the properties of the Source element / by default are only put in the controls of the page displayed in the browser, not in session state. To refer to a session-state item value (as in a & P11_HIDDEN_ITEM. substitution of static text) then the value must be set in session state in a calculation or process that runs before the substitution reference is returned.

    Setting the value using a calculation is the right way to do it.

  • My 6 Lightroom freeze when changing from tab to tab library developing countries

    My 6 Lightroom freeze when changing from tab to tab library developing countries

    Hello

    Please follow the Solution below

    1. Go to edit > preference > Performance > uncheck "processor chart use" If this does not solves the problem then,
    2. With Lightroom closed
    • Access

    C:\Users\YourUserName\AppData\Roaming\Adobe\Lightroom\Preferences    (Where AppData is a system folder / hidden so you may need to enter the name of the folder directly into your browser's address bar or activate hidden folders / system in the Internet Explorer view folder options.)

    • Open the file LightroomPreferences.agprefs
    • Locate the line use = True autobahn (press CTRL + F)
    • Take Autobahn use = False


    After save the file

    Restart Lightroom

    3. also refer to that link and update GPU if you use AMD map

    Adobe Photoshop Lightroom Help | Problems with graphics cards 6 CC/Lightroom Lightroom and AMD | Win

    Let us know if this helps

    Concerning

    ~ Assani

  • How can I change from mm to inches in Page layout when you customize?

    How can I change from mm to inches in Page layout when you customize?

    This forum is for developers who use the LR SDK.  Your post in the main forum of LR will be enough: need to change the dimensions of mm to inches of layout using custom calibration.

  • Why do you have my emoticons change from one day to the next and how can I get the 'old'?

    The choice of emoticons changed from one day to the next. I would like to have the 'old'. Why Gmail does not send a msg Heads Up? Thank you.

    Hello

    This does not sound like a Firefox problem, but a change that was made to Google for their e-mail service. I recommend that get you in touch with them through the channels of Gmail support and they may be able to help.

  • Search box entries changed from one day to the next in the UK? such as yahoo.co.uk and Ebay.co.uk... How can I change it back to the United States?

    No further details. The search box in upper right corner of the display suddenly changed from the United States to the United Kingdom. I have nothing to do with it. I noticed it just a couple of days, when I went to Google search. I can't change their return. He actually added Chambers (UK) and I've never heard of him.

    Sounds that the locale has changed somehow to en-GB.

    You can get the version of Firefox en here:

  • How can I stop my photos be deleted from all my devices when I remove my phone is off

    How can I stop my photos be deleted from all my devices when I remove my phone is off

    With no information can only guess

    My guess is that you are using iCloud photo library and if that is correct, then this is the way ICPL works and why it exists - it synchronizes the libraries on mulciple devices by keeping anyway - any changes made on any device is performed on all including additions, deletions, and modifications

    If this isn't what you want then you should not use ICPL

    For devices with limited storage you put to use optimized photos keep the originals only on iCLoud photo library and any other device with large storage available

    LN

  • Store changed from the United Kingdom to China using my old zip code. Now cannot get back. Payment type is NONE, but get requests by charging to add card details.

    Store changed from the United Kingdom to China the other day using my old zip code. Now can not return to the United Kingdom. Payment type is NONE, but get requests in billing add card details that they are not everything. Postal code is changed back to UK. Phone is iOS 4 s 9.2.1. Any ideas how to get back?

    Hi Sandyback,

    Thank you for your participation in the communities of Support from Apple.

    I see that you have changed the country associated with your Apple (iTunes Store account) ID, and now ask you to provide a method of payment. This happens when changing the country on an existing Apple ID, according to why I can't select None when I change my Apple ID payment information?

    If you have changed your country or region

    When you change the country or the region of an Apple ID, you must provide a payment method and update your billing options. If you want to delete your payment method after you change the country or region, you can change your payment information to none.

    You will not be able to see or select the no payment option for one of these reasons. If you don't want to use a credit card, you can use another form of payment, for example, a gift card.

    Sincerely.

  • How to configure the automatic change of "blue tooth mouse" to "touch pad"?

    00F00D Toshiba PSP CDA-how do to implement the automatic change of "blue tooth mouse" to "touch pad". When 'blue tooth mouse' is disabled or no signal, cell automatically changes to "touch pad" & visa versa.

    Hello

    You can turn off the tapping in the mouse properties. Go to control panel > mouse. In advanced options, you can disable this feature if the driver is correctly installed.

  • I deleted the majority of my photos from my phone but when I connect it to iTunes it always shows in the bar memory

    I deleted the majority of my photos from my phone, but when I connect it to iTunes it always shows in the bar of memory and it shows that I have no memory left

    You've synced the iPhone yet? It refreshes the data in iTunes.

    Furthermore, if you have configured to load music you deleted or the same photos of iTunes, iTunes will put this information on the iPhone when you synchronize.

    Try pressing sync and see if it changes at all.

  • HP Envy 7640: HP Envy 7640 Panel does not when touched

    On the powers and control panel displays, but when touch none of the controls (copy, fax, scan, etc.), nothing happens.  I can print and scan from my computer. The wireless light when connected to WiFi.

    I tried to turn the power off and then turn it on. Once again, the Panel lights up, but does not. Software/firmware update. Fax Test reports pass in all areas.

    Powered on, unplug the unit from the wall. Wait 10 minutes. Reconnect the unit to the wall outlet with no power strip or surge protector. Unit of power on if it is not lit. Status now?

  • Spell check in outlook express has changed from English to the french.

    spell check in outlook express changed from English to the french, and there is no option to return to English as when you mention the french options is available in the menu dropdown. Any suggestions?

    Hello

    I suggest you to visit these links and check if it helps:

    http://support.Microsoft.com/kb/932974

    http://blogs.msdn.com/b/dgoldman/archive/2007/01/03/how-to-fix-the-Outlook-Express-spelling-checker-when-the-French-dictionary-is-the-only-dictionary.aspx

    It will be useful.

Maybe you are looking for

  • What happened to the history & the window tab private I used to have and used

    When you updated my browser you deleted the firefox tab in the upper left corner of the screen. This tab had links to history, bookmarks, private window and more. Now the tab disappeared and is no longer, I can access these features. I have used thes

  • Toshiba 1405-S151

    I found the following on my laptop model number 1405 S151. I need to download video drivers and network. The problem is that this model number does not appear in the list of the model. It is 1400 to 1410. Someone here from Toshiba to tell me if there

  • Pavilion 15-au009tx: battery problem

    Hello Sir, I have not the model of laptop. Pavilion 15-au009tx, last 24 hours, I am facing battery problem, prior to that, my battery was to last in average 4-5 hours, but not it doesn't last even during 3 hours, it was arriving in the last 24 hours,

  • Test component of oscilloscopes

    Hi there any body knows how to make a component test for example diodes or transistors on multisim.where in true oscilloscope you connect the machine to Earth and entries of component test and press the component test button.

  • How to recover a code product key for windows xp upgrade 2003

    How to recovery code product key