Can someone tell me how to create effect when tap on items on desktop ( ex. When tap on widget as zooper)

Can someone tell me how to create effect when tap on items on desktop ( ex. When tap on widget as zooper)

]]>

9 Commentsto Can someone tell me how to create effect when tap on items on desktop ( ex. When tap on widget as zooper)

  1. Anonymous says:

    < ![CDATA[

    Which kind of effect?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Color changing. It looks like when i tap on an app icon ( the white color appear when tap on icon)

    ]]>

  3. Anonymous says:

    < ![CDATA[

    You can found the option in the properties box (pencil icon in the bottom bar), box content color can be configured for normal, pressed or focused state (if expert mode is checked), and the selection effect option can be found in the last properties tab.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Yeah i got it. But I realized that the color effect is underneath the widget. So if the widget’s background is full in it’s grid size (no paddding, no margin) i cant see the appearance of color effect. Any way to creat the effect that appears above the item?

    ]]>

  5. Anonymous says:

    < ![CDATA[

    You may create another blank item and place it over the widget, and configure it to launch some app or shortcut?

    ]]>

  6. Anonymous says:

    < ![CDATA[

    if do like that, i cant use the widget’s function. this launcher combine with fully customisation widgets as zooper or uccw can creat many amazing theme.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Then do this:


    – keep the invisible item over the widget, and give it the name ‘overlay’


    – set the invisible item to non clickable (last tab in the properties box)


    – edit the widget properties and set the touch event to run this script:



    var color = null;


    switch(event.getAction()) {


    case MotionEvent.ACTION_DOWN: color = 0x60ff0000; break;


    case MotionEvent.ACTION_UP: color = 0x00000000; break;


    }


    if(color != null) {


    var ed = item.getParent().getItemByName(‘overlay’).getProperties().edit();


    ed.getBox(‘i.box’).setColor(“c”, “n”, color);


    ed.commit();


    }



    item.getRootView().getChildAt(0).getChildAt(0).getChildAt(0).dispatchTouchEvent(event);


    return false;



    Hackish, but should work.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    I did following your guide and i have got color effect. But there were some issues:


    1: when change color state of main widget, the color effect didnt change according to.


    2: it block clickable function of main widget. For ex: i have news widget that have refresh button but when tap on that button, i didnt work as normal. It was blocked by the invisible item.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    I don’t know why, it worked for me…

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *