1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
    pvmagacho is on a distinguished road

      0  

    Default Unanswered: Button highlight when touched down

    Unanswered: Button highlight when touched down


    Does sencha touch support the highlight animation when a button is touched down (same behaviour as native code) or do we have to manually add this feature ?

    Thanks,

  2. #2
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Answers
    8
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Quote Originally Posted by pvmagacho View Post
    Does sencha touch support the highlight animation when a button is touched down (same behaviour as native code) or do we have to manually add this feature ?

    Thanks,
    Hi,
    Highlight animation? Like when it looks different when pressed?

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
    pvmagacho is on a distinguished road

      0  

    Default


    Yes. To show that the button was pressed. For iOS it corresponds to the highlighted state.

    I've had added a new UI using Sencha theming, to have a custom button color.

    Thanks

  4. #4
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Answers
    8
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
    pvmagacho is on a distinguished road

      0  

    Default


    What if I use a different UI I've created ? Does it still works ?


    Thanks

  6. #6
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Answers
    8
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Hi,
    Different UI?
    SASS/CSS changes?

  7. #7
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
    pvmagacho is on a distinguished road

      0  

    Default


    Yes. Exactly that.

    Thanks

  8. #8
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Answers
    8
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Quote Originally Posted by pvmagacho View Post
    Yes. Exactly that.

    Thanks
    Sure you can. No problem!

  9. #9
    Sencha User
    Join Date
    Jul 2011
    Posts
    31
    Answers
    1
    Vote Rating
    0
    pvmagacho is on a distinguished road

      0  

    Default


    Quote Originally Posted by hotdp View Post
    Sure you can. No problem!
    Thanks for your reply.

    But it's not working. I am using a dark color (almost black) and it does not show the animation. Should I add something to the pressedCls class ?

  10. #10
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Answers
    8
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Quote Originally Posted by pvmagacho View Post
    Thanks for your reply.

    But it's not working. I am using a dark color (almost black) and it does not show the animation. Should I add something to the pressedCls class ?
    Hi,
    Can you show some code?

Thread Participants: 2