Show Touch On Highlight not working when moving from 1.8.2 to 2.1.3

You must Login before you can answer or comment on any questions.

I'm upgrading an app from 1.8.2 to 2.1.3. All of our buttons had the glow when touched.. We loved this behaviour and still want it but I can't figure out how to bring them back.

I realize that some developers didn't want this behaviour and apparently it was fixed by setting different backgroundImage and backgroundSelected values. But how do you bring back this nice feature?

In Xcode its call "Show Touch On Highlight"

Thanks

— asked 9 months ago by James H
3 Comments
  • Missing from your question are a number of important pieces of information. I suggest you take a look at the Using Questions and Answers article, specifically the Q&A Question Checklist. The missing information is critical to reproducing problems in a test environment and often indicates other factors that cause the undesirable outcome you are experiencing.

    — commented 9 months ago by Stephen Feather

  • only guessing its for ios, as you mentioned xcode

    Code sample of how you are declaring your buttons would be helpful.

    — commented 9 months ago by Stephen Feather

  • Sorry for not being clear, my mistake :-(

    Here is the code in 1.8.2 that used to show the nice glow when touched

    var btnFavoriteOn = Titanium.UI.createButton({
        backgroundImage : '/images/Favicon-On.png',
        width : 20,
        height : 20,
        left : 35,
        top: 0
    });
     
    btnFavoriteOn.addEventListener('click', function() {
        Ti.App.fireEvent('app:RefreshFavorite');
    });
    in 2.1.3 the nice glow is gone.

    I found this regarding people who wanted the glow to be removed.

    Here is the link to the bug fix that shows how to remove remove the glow.

    If I don't follow the steps I would assume that the glow would remain (intended result), but I'm not able to :-(

    — commented 9 months ago by James H

1 Answer

Your Answer

Think you can help? Login to answer this question!